
Hi All
I am a student studying biostatistics with the University of Queensland, externally.  I have a set of data from a crossover trials and I would like to fit a linear mixed model to the data.  I would like to fix participant ID as fixed and treatment and treatment period as random in the model.  Is this use of a linear mixed model appropriate to use on this sort of data?  In addition I am new to using R and I am having difficulties with the R code to get the analysis to work.  I can use the ID as a random variable and treatment and period as fixed variable and get the model to work but when I change them around I cannot get them to work.  Can you please helpo me with
some code for a linear mixed model with ID as fixed and treatment and treatment period as random?  Also what is getGroups as I have this error output but I cannot work out the code?
Cheers
Neroli Graham
 		 	   		  
	[[alternative HTML version deleted]]


