[18808] in s-news-athena

home help back first fref pref prev next nref lref last post

[S] predict function(clarification)

daemon@ATHENA.MIT.EDU (Lionel Siau)
Mon Aug 2 09:14:37 1999

Message-Id: <37A59954.1C76DE4@btinternet.com>
Date: Mon, 02 Aug 1999 14:12:52 +0100
From: Lionel Siau <cyls98@btinternet.com>
Mime-Version: 1.0
To: S-news@wubios.wustl.edu
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Hi,

I've looked at the help and manual but there is no mention of how
predict treats the input data. Specfically, is the predict fn smart
enough to use only the response variables required from the incoming
dataframe and ignore the other variables store in it.

ozone.lm<-lm(ozone~temperature, data=air1)
predict(ozone.lm, air2)

where air1 and air2 are identical dataframes except for the values
inside them.


Lionel

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

home help back first fref pref prev next nref lref last post