Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


dmm (version 2.1-7)

quercus.df: Quercus example dataset

Description

Example dataset from the program package 'QUERCUS', developed by Ruth G. Shaw and Frank H. Shaw. Known to 'quercus' as the 'demo2' dataset.

Usage

data(quercus.df)

Arguments

Format

A data frame with 180 observations on the following 6 variables.

Id

Identifier for individuals

SId

Identifier for sires of individuals

DId

Identifier for dams of individuals

Sex

A numeric vector: code for Sex of each individual

Trait1

A numeric vector: an observation called Trait1

Trait2

A numeric vector: an observation called Trait2

Details

This is a simulated dataset suitable for a 3-component analysis, the components being environmental variance, additive genetic variance, and dominance genetic variance. It needs pre-processing with function mdf() to add base animals, to combine the two traits into a matrix, and to calculate additive and dominance relationship matrices.

Examples

Run this code
library(dmm)
data(quercus.df)
str(quercus.df)
# preprocess
quercus.mdf <- mdf(quercus.df,pedcols=c(1:3),factorcols=4,ycols=c(5:6),
               relmat=c("E","A","D"),sexcode=c(1,2))
str(quercus.mdf)
# cleanup
rm(quercus.df)
rm(quercus.mdf)
#
# there is a full analysis of this dataset in 'dmmOverview.pdf'.
#

Run the code above in your browser using DataLab