Re: [R] Simple question about function with glm

From: Ben Bolker <bolker_at_zoo.ufl.edu>
Date: Mon, 07 May 2007 03:58:52 +0000 (UTC)

 <Bill.Venables <at> csiro.au> writes:

>
> Finally, I'm a bit puzzled why you use glm() when the simpler lm() would
> have done the job. You are fitting a linear model and do not need the
> extra paraphernaila that generalized linear models require.
>
> Bill Venables.
>

  Perhaps the original poster is confused about the difference between general (a la PROC GLM) and generalized (glm) linear models?

  The code is also a little puzzling because the same tests seem to be run whether p>0.05 or not. Perhaps the code will eventually be written to log-transform the data if it fails the normality test?

 [ hint: ?boxcox in the MASS package might be a better way to go ]

  Ben Bolker



R-help_at_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. Received on Mon 07 May 2007 - 04:05:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 07 May 2007 - 08:31:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.