data(pheno)
FAMID
FAMID
, which are all multiples of 10.ID
ID
, which is equal to his/her INDIV
plus his/her FAMID
.FTYPE
INDIV
INDIV=1
is for "Offspring #1," INDIV=2
is for "Offspring 2," INDIV=3
is for the mother, and INDIV=4
is for the father. In families of FTYPE=5
, the biological offspring has INDIV=1
, and the adopted offspring, INDIV=2
. All "independent observations" (i.e., FTYPE=6
) have INDIV=1
. Note that individuals in a given family are ordered by their INDIV
.Zscore
IsFemale
mvrnorm
in package mvtnorm) with a centroid defined conditional upon the family members' genotypes on the effect locus (rs7681769 in dataset geno
), and a variance matrix with 1s on its diagonal and covariances (really, correlations) consistent with an additive heritability of 0.5 and a shared-environmentality of 0.2, but zero assortative mating.
data(pheno)
str(pheno)
qqnorm(pheno$Zscore[pheno$INDIV==1]) ##<--Normally distributed phenotype.
qqline(pheno$Zscore[pheno$INDIV==1])
##Also see examples for functions fgls(), gls.batch(), and gls.batch.get().
Run the code above in your browser using DataLab