[R] predict.glm - how to?
Paul Johnson
pauljohn32 at gmail.com
Thu Mar 2 17:19:33 CET 2006
On 3/2/06, Laurits Søgaard Nielsen <laurits at lauritsnielsen.dk> wrote:
> Hi
>
> I have a little R problem. I have created a GLM model in R and now I want to
> predict some values outside the values I have in the model (extrapolate).
>
>
myglm <- glm( some stuff here)
whatever <- some-new-hypothetical-data-you-create
predict (myglm, newdata=whatever, type="response")
I have hints on this in Rtips
http://pj.freefaculty.org/R/Rtips.html#7.5
--
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas
More information about the R-help
mailing list