longPheno.dat {SimHap}R Documentation

Example phenotypic, longitudinal data

Description

longPheno.dat is an example phenotypic data set containing biological measures to be used by snp.long and haplo.long

Usage

data(longPheno.dat)

Format

A data frame with 601 observations on the following 12 variables.

id
patient identifier.
year
year of survey.
time
time point in years, where 1966=1.
sex
1=male, 0=female.
age
age in years.
height
height in metres.
weight
weight in kilograms.
bmi
body-mass index.
fev1f
forced expired volume in the first second - measure of lung function.

Details

longPheno.dat was simulated to take the format of the Busselton Health Survey from Western Australia.

Examples


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)

[Package SimHap version 1.0.0 Index]