Displaying 1 result from an estimated 1 matches for "mydrug".
2014 Nov 13
2
Help with ddply/summarize
I have a straightforward application of ddply() and summarize():
   ddply(MyFrame, .(Treatment, Week), summarize, MeanValue=mean(MyVar))
This works just fine:
   Treatment     Week MeanValue
1    MyDrug  BASELINE      5.91
2    MyDrug    WEEK 1      4.68
3    MyDrug    WEEK 2      4.08
4    MyDrug    WEEK 3      3.67
5    MyDrug    WEEK 4      2.96
6    MyDrug    WEEK 5      2.57
7    MyDrug    WEEK 6      2.50
8    Placebo BASELINE      8.58
9    Placebo   WEEK 1      8.25
...
But I want to spec...