On Mon, 2007-03-12 at 19:58 -0600, Jun Xu wrote:
> I don't have much experience with r. What I am trying to do is to turn
> regression coefficients (after I run a lm or glm model) into some matrix
> such that I can do some post-estimation calculation, for example predicted
> probabilities in glm model, etc.. Or, is there any function in r that I can
> use to do something along that line? thanks.

Presuming that you have a lm() or glm() model object, see:

  ?model.matrix

  ?model.frame

  ?predict.lm

  ?predict.glm

HTH,

Marc Schwartz

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to