Displaying 2 results from an estimated 2 matches for "phq_base".
Did you mean:
pgd_base
2012 Sep 08
0
reshape and geeglm problem
Dear R users,
could you please help me figure out why I am getting an error?
Initially my data looks like this:
> attributes(compl)$names
[1] "UserID" "compl_bin" "Sex.x" "PHQ_base" "PHQ_Surv1" "PHQ_Surv2" "PHQ_Surv3"
[8] "PHQ_Surv4" "EFE" "Neuro" "Intervention.x" "depr0" "error1_1.x" "error1_2.x"
[15] "e...
2012 Oct 17
1
Comparing dcast and reshape
...t;, "id", "instrument"),
measure.vars=c("base.score", "score.90d"))
FullCast <- dcast(Full.Melt, site + id ~ instrument + variable,
value.var="value")
> FullCast
site id beck_base.score beck_score.90d phq_base.score phq_score.90d
1 1 1 27 20 13 11
2 1 2 31 27 11 12
3 2 1 22 24 10 8
4 2 2 41 34 17 15...