| longPheno.dat {SimHap} | R Documentation |
longPheno.dat is an example phenotypic data set containing biological measures to be used by snp.long and haplo.long
data(longPheno.dat)
A data frame with 601 observations on the following 12 variables.
idyeartimesexageheightweightbmifev1f
longPheno.dat was simulated to take the format of the Busselton Health Survey from Western Australia.
data(SNPlong.dat)
# transforms SNPlong.dat to an object containing 3 columns
# per SNP - additive, dominant and recessive, where genotypes
# defined in 'baseline' serve as the baseline genotypes
longGeno.dat <- SNP2Geno(SNPlong.dat, baseline=c("AA", "GG", "V2V2"))
data(longPheno.dat)
mymodel <- snp.long(fixed=fev1f~SNP_1_add, random=~1|id,
geno=longGeno.dat, pheno=longPheno.dat, form=~year|id)
summary(mymodel)