[R] best way to calculate per-parameter differences in across-subject means

From: René J.V. Bertin <rjvbertin_at_gmail.com>
Date: Thu 03 Aug 2006 - 00:41:27 EST


Hello,

I have some data in a data.frame where for each of a number of subjects, I have scores for all of a number of symptoms.

Subjects are subdivided in a number of groups, which have unequal sizes.

I'd like to plot between-group differences in the scores on the various symptoms. Ideally, that would be in a form as would be produced by

> bwplot( Score~Symptom )

but I'm not sure one can say anything about the distribution of differences when the sample sizes differ as much as they do.

So I will start plotting the per-group differences in the per-symptom mean scores.

Is there a better way (rather than using loops) to get a table of those per-symptom means, something like

> with( subset(dat, group==1, drop=FALSE), Score~Symptom )

Thanks in advance,
René Bertin



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu Aug 03 00:56:41 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 03 Aug 2006 - 22:17:29 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.