🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Alexander Sirotkin Mon, 03 Dec 2001 20:08
simple Splus question - plot regression function
#2
Author: Alexander Sirotkin
Date: Mon, 03 Dec 2001 20:08
8 lines
1324 bytes
Hi.

After fitting a linear regression model I need to do an extremely 
simple thing - plot the regression function along with the original 
data. Splus has a simple way to plot quite a few complex plots and 
a very complicated way to do this simple one !

Is there a simple way to plot the regression function and the data ?
Re: simple Splus question - plot regression function
#3
Author: Anon.
Date: Tue, 04 Dec 2001 07:44
44 lines
2466 bytes
Alexander Sirotkin wrote:
> 
> Hi.
> 
> After fitting a linear regression model I need to do an extremely
> simple thing - plot the regression function along with the original
> data. Splus has a simple way to plot quite a few complex plots and
> a very complicated way to do this simple one !
> 
> Is there a simple way to plot the regression function and the data ?

abline!
e.g.

reg1 <- lm(y~x)
plot(x,y)
abline(reg1)

I can do naught more than suggest reading Venables & Ripley's Modern
Applied Statistics with S-plus.  And seeing as this is going to and
Aussie NG, I suspect by doing this I'll warm the cockles of the heart of
at least one of the authors.

Bob

-- 
Bob O'Hara
Metapopulation Research Group
Division of Population Biology
Department of Ecology and Systematics
PO Box 17 (Arkadiankatu 7)
FIN-00014 University of Helsinki
Finland

NOTE: NEW TELEPHONE NUMBER
tel: +358 9 191 28779  fax: +358 9 191 28701
email: bob.ohara@helsinki.fi
To induce catatonia, visit:
http://www.helsinki.fi/science/metapop/

It is being said of a certain poet, that though he tortures the English
language, he has still never yet succeeded in forcing it to reveal his
meaning
- Beachcomber
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads