Re: [R] GLM problem

About this list Date view Thread view Subject view Author view

From: Thomas Lumley (tlumley@u.washington.edu)
Date: Fri 22 Jun 2001 - 02:50:12 EST


Message-ID: <Pine.A41.4.33.0106210945380.125192-100000@homer09.u.washington.edu>

On Thu, 21 Jun 2001, laurans@roazhon wrote:

> When I add the following instruction : make.link(log) I have an error
> that I don't understand.
>
> model<-glm(spa~an, family=gaussian, make.link(log))
> error in as.vector(x, "double"): cannot coerce to vector)
>

You are specifying the data= argument as make.link(log). Not surprisingly
this makes R unhappy.

I think you want
   model<-glm(spa~an, family=gaussian(log))

        -thomas

Thomas Lumley Asst. Professor, Biostatistics
tlumley@u.washington.edu University of Washington, Seattle
^^^^^^^^^^^^^^^^^^^^^^^^
 NOTE NEW EMAIL ADDRESS

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:45 EST