[R] GLMs

Ben Bolker bolker at ufl.edu
Wed Aug 26 18:47:44 CEST 2009




Letizia Campioni wrote:
> 
> 
> Hi,
> 
> I am starting to work with R. 
> 
> I need to performe a General linear model and a Generalized mixed model,
> what are the package I have to use for?
> 
> what is the difference between them?
> 
> 

General linear models (called GLM mostly by SAS users) are implemented by lm
(no need
to install or load additional packages).
General*ized* linear models (called GLM by everyone else): use glm (still no
need for
extra packages).
Linear mixed models (LMMs): nlme (library("nlme"), no need to install
extras.
Generalized linear mixed models (GLMMS): lme4 -- install.packages("lme4");
library("lme4"), ?glmer

  This list is not generally for "general statistics" questions -- you're
expected to know *what*
you want to do, and we will help you with *how* to do it in R (provided you
have read
the posting guide and formulated a useful question).  I would suggest a book
-- check out
the R books page ( http://www.r-project.org/doc/bib/R-books.html ) -- maybe
Faraway?

  

-- 
View this message in context: http://www.nabble.com/GLMs-tp25150823p25151455.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list