Displaying 1 result from an estimated 1 matches for "a_datafram".
Did you mean:
a_dataframe
2008 Feb 15
1
How to plot fitted values from lmer (lme4 package)?
...with R part 1 ? Walter Zuccchini and Oleg Nenadic) for
reference and if the answer is there (which it probably is) I can?t
understand it (I have a very slow dial up connection so even searching
nabble frequently crashes)!
An example of the model is:
Scale the annual cycle to be length 1.0:-
with(a_dataframe,length(mean_ind))
[1] 15
index<-1:15
15/4
[1] 3.75
time<-index/3.75
Model (index used as explanatory variable for trend, also allows different
intercepts for years as a random effect ? I hope):-
mtrend<-lmer(a_dataframe$mean_ind~index+sin(time*2*pi)+cos(time*2*pi)+(1|factor(a_dataframe$...