Skip to content
Prev 10846 / 20628 Next

model for clustered longitudinal binary data

Adrien Combaz <Adrien.Combaz at ...> writes:
[snip]
Correlation among trials for a given subject should be straightforward,
correlation along time for a given trial may be difficult (see below).
This all seems reasonable.  If you really want time to be treated
as ordinal, you'll want to look at the clmm function from the 'ordinal'
package.  In most R modeling packages you don't need to state
explicitly which levels the covariates are measured at (but keeping
track of it is of course useful for thinking about issues of
identifiability, etc.)

A simple model would be something like

 response ~ time + expcond + (1|rep/sub)

As a more complete model you could consider

 response ~ time + expcond + (time|rep/sub) + (expcond|sub)