Displaying 1 result from an estimated 1 matches for "compl_long".
Did you mean:
compellong
2012 Sep 08
0
reshape and geeglm problem
...3" "stress4"
[22] "hours1" "hours2" "hours3" "hours4" "subject"
First I reshape my data to prepare for geeglm:
compl$subject <- factor(rownames(compl))
nobs <- nrow(compl)
compl_long <- reshape(compl, idvar = "subject",varying = list(c( "PHQ_Surv1" , "PHQ_Surv2" , "PHQ_Surv3" , "PHQ_Surv4" ), c("error1_1.x", "error1_2.x", "error1_3.x", "error1_4.x"), c("stress1", "stres...