Displaying 2 results from an estimated 2 matches for "age11".
Did you mean:
age1
2008 Oct 10
1
Coefficients in a polynomial glm with family poisson/binomial
...2<-glm(FEDSTATUS1~AGE+I(AGE^2), family=binomial(link="probit"))
summary(glm2) ### first set of "wrong coefficients"
nd1<-expand.grid(AGE=c(1:70))
Pred.Fed1<-predict(glm2,nd1,type="response")
points(predict(glm2,nd1,type="response")~nd1$AGE, col=2)
AGE11<-c(11:70)
Pred<-t(rbind(Pred.Fed1,AGE11))
Pred<-as.data.frame(Pred)
model<-lm(Pred$Pred.Fed1~Pred$AGE11+I(Pred$AGE11^2))
summary(model) ### "accurate coefficients"
Thanks
Samuel Riou
University of Leeds
2011 Feb 28
3
Measuring correlations in repeated measures data
...ackage nlme, where the model is:
fit <- lmer(distance ~ age + (1 | Subject), data=Orthodont)
I would like to measure the correlation b/t the variable "distance" at different ages such that I would have a matrix of correlation coefficients like the following:
age08 age09 age10 age11 age12 age13 age14
age08 1
age09 1
age10 1
age11 1
age12 1
age13 1
age14 1
The idea would be to demonstrate that the correlations b/t repeated measures...