descriptives.trait {GenABEL} | R Documentation |
Function to generate descriptive summary tables for phenotypic data
descriptives.trait(data,subset,file,by.var=NULL,digits = 3)
data |
an object of snp.data-class or gwaa.data-class |
subset |
Subset of people to run analysis on.
If missing, all people from data are used for analysis. |
file |
A string specifying the name of a file to write the tables to (default is no file otput). |
by.var |
a binary trait; statistics will be produced seprately for the groups and compared |
digits |
number of digits to be printed |
A table with descriptive statistics. Ptt: t-test; Pkw: kruskal.test; Pex: Fisher exact test (for factors with <5 levels)
Yurii Aulchenko
data(srdta) descriptives.trait(srdta) descriptives.trait(srdta,by.var=srdta@phdata$sex)