[R] Predicted values from a logistic model
MANASI VYDYANATH
manasi.vydyanath at gmail.com
Mon May 14 03:49:44 CEST 2007
Hello -
I apologize if this question is simple/obvious, but I couldn't find a
satisfactory answer online, and I am not very accustomed to working
with R (Matlab is my poison. :-)). Any help would be greatly
appreciated.
I have a model with a three-level factor and a continuous covariate.
The call I use is:
mymodel <- glm(Response ~ Factor_covariate + continuous_covariate -
1, family = binomial(link = "logit"))
I would like to generate predicted values for a given level of the
covariate, and a given level of the factor. For instance, I want it
to give me a fitted value for the response at factor level 1 and
continuous covariate value 10. How would I go about expressing this?
I tried to look at the package Design, and specifically, at the
command "predict.lrt". But I was unable to quite understand how I
ought to enter my x-values. Again, any help would be much appreciated.
Thank you for taking the time to read this!
Cheers,
Manasi
More information about the R-help
mailing list