[R] get response from a glm

Michael Bedward michael.bedward at gmail.com
Wed Sep 29 09:18:56 CEST 2010


Hello,

The predict.glm is your friend.

Type ?predict.glm to see the help page.

Michael


On 29 September 2010 12:45, xinxin xx <xxgreat at hotmail.com> wrote:
>
> Hi everyone:
>
>  I am new to R and I have a really basic question.
>     I have already got a generalized linear model from some dataset, say y=b0 + b1X1 + b2X2.  Then I want to get the value of y provided, say, X1=1, X2=2.  And the confidence Intervals of this y.
>     I know I can just calculate that since I know the model already. But is there some code that can calculate those automatically?
>
>
> Thank you very much!
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help at r-project.org 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.
>
>



More information about the R-help mailing list