pheno.dat {SimHap} | R Documentation |
pheno.dat
is an example phenotypic data set containing biological measures to be used by snp.quant
, haplo.quant
, snp.bin
and haplo.bin
data(pheno.dat)
A data frame with 180 observations on the following 16 variables.
ID
SEX
AGE
SBP
DBP
BMI
WHR
HDL
LDL
DIABETES
FH_IHD
PLAQUE
SMOKE
PY
DISEASE
STRAT
pheno.dat
is a simulated data set of coronary heart disease related phenotypes
data(SNP.dat) # convert SNP.dat to format required by snp.quant geno.dat <- SNP2Geno(SNP.dat, baseline=c("MM", "11", "GG", "CC")) data(pheno.dat) mymodel <- snp.quant(formula1=LDL~AGE+SBP+factor(SNP_1_add), formula2=HDL~AGE+SBP, geno=geno.dat, pheno=pheno.dat) summary(mymodel) # example with a subsetting variable, looking at males only mymodel <- snp.quant(formula1=LDL~AGE+SBP+factor(SNP_1_add), formula2=HDL~AGE+SBP, geno=geno.dat, pheno=pheno.dat, sub=expression(SEX==1))