

Dear All,

The following equation is a linear mixed-effects  model with linear trend and AR(1) error structure,

y = B0 + B1x + bo + b1x + e; e~AR(1) 

where  y is a response, x is the predictor, B0 and B1 are fixed effects and b0 and b1 are random effects. 

Coud someone please advice me a function to compute the R2 for the goodness of fit of the above model in R package, and  are the computation for R2 in the mixed model with AR(1) error structure similar to the mixed model with no error structure?

thanks,
Fir
	[[alternative HTML version deleted]]

