[R] Loglienar models

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Jan 29 17:04:16 CET 2004


On Thu, 29 Jan 2004, Harry Khamis wrote:

>     I'm planning to start using R.  Before getting into it, I'd like to 
> ask a couple of questions.  Does R carry out loglinear model analysis? 

Yes.  (It has several functions to do so, including glm, loglin, 
loglm and multinom).  Putting `loglinear' into the help search found 
all of those.

>  That is, will it provide the chi-squared goodness of fit test statistic 
> for a given hierarchical loglinear model?  

Yes (although there are two, sometimes known as G^2 and X^2, so you will 
need to be careful).

> Maybe even do a model selection procedure (like Brown's two-step
> procedure, or forward/backward selection)?

Yes.

R is currently been used here on a course on log-linear models for social 
scientists, at their suggestion.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list