[R] Repeated measures with categorical data

Duncan Mackay dulcalma at bigpond.com
Wed Nov 20 12:24:13 CET 2013

Also take a look at packages multgee  repolr and VGAM, particularly repolr
if your data does not fit the PO model



Duncan Mackay
Department of Agronomy and Soil Science
University of New England
Armidale NSW 2351
Email: home: mackay at northnet.com.au

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Ben Bolker
Sent: Tuesday, 19 November 2013 23:51
To: r-help at stat.math.ethz.ch
Subject: Re: [R] Repeated measures with categorical data

sualme <susana.alberichmesa <at> osakidetza.net> writes:

> Hello,
> I am working in a longitudinal study, with a categorical variable as a 
> dependent variable (alcohol consumption: no use, use, abuse and 
> dependence) with repeated measures (baseline, 1 year, 2 years). 
> Besides I have another variable with two groups: control and experimental.
> I would like to analyze the evolution in each group, I have though in 
> lme, but I am not sure if I can do an lme with a categorical vble as 
> dependent vble, or it must be continuous. If so, which model could I 
> do? I have read something about lmer, but doesn`t give p-values..
> Thanks in advance!

  I'd take a look at the clmm function in the 'ordinal' package, or possibly
the MCMCglmm package, and consider posting future questions to
r-sig-mixed-models at r-project.org .  (Your response variable is probably
considered 'ordinal', i.e. ordered categorical, which may be helpful
terminology in searching for solutions.)

  Ben Bolker

R-help at r-project.org mailing list
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