require(GenABEL.data)
data(srdta)
descriptives.trait(srdta)
descriptives.trait(srdta,by.var=srdta@phdata$sex)
descriptives.trait(srdta,by.var="sex")
attach(phdata(srdta))
descriptives.trait(srdta,by.var=sex)
detach(phdata(srdta))
Run the code above in your browser using DataLab