Skip to content

Help with predict.lm

2 messages · Liaw, Andy, Mike White

#
Will this help?
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/1202.html

[Found by RSiteSearch("calibration") in R-2.1.0.]

Andy
#
Andy
Thanks, the link was very helpful.  I havn't checked the code for the calib
function but it appears to work with my data.
[NB the return function generates a warning message with later verions of R
and needs to be amended to return a list]

In the last line of my code, calibration.lm should have been lm.calibration,
but it still does not work with predict.lm
I presume the solution of reversing the variables as in the linear model to
force predict.lm to work is an invalid statistical method as the regression
line will be slightly different, i.e.

    predict(lm(conc ~ abs), new.abs) # gives slightly different results than
the calib function

Thanks to all who replied,
Mike White


----- Original Message -----
From: "Liaw, Andy" <andy_liaw at merck.com>
To: "'Mike White'" <mikewhite.diu at tiscali.co.uk>; <R-help at stat.math.ethz.ch>
Sent: Tuesday, April 19, 2005 1:53 PM
Subject: RE: [R] Help with predict.lm
----