[R] crosstabling multiple variables at once
ligges at statistik.tu-dortmund.de
Fri May 21 10:29:41 CEST 2010
On 20.05.2010 19:16, Biau David wrote:
>> I am trying to describe a data.frame by obtaining multiple crosstable summary statistics at once. I have tried table, xtab, crosstable, summaryBy and describe but none of these functions seems to allow muliple conparisons at once.
>> Here, is what I would like to do:
>> I have, for instance, age, sex (M and F), grade (1, 2, 3) and site (limb, trunk) and I want the, for instance, following summary statistics:
>> - age (mean, SD) for males and age for females
>> - age for grade 1, grade2, and grade 3
>> - age for site limb, site trunk
>> - sex (count, proportions) for grade 1, grade2, and grade 3
>> - sex (count, proportions) site limb, site trunk (already have sex/age above)
>> - grade (count, proportions) for site limb, site trunk (already have grade/sex and grade/age above)
>> lso, I want each of these not crossed by any others (mean overall age, numbers of males, etc) which could be seen as each crossed with its own.
>> I have at least 10 variables, continuous, categorical ordered and non ordered. I don't want any tests.
>> Any idea?
Since all of the tables you want to get are somehow specific, I'd do it
step by step.....
>> David Biau.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help