ANOVA.data: Transform pedigree data to a list format

Description Usage Arguments Value Author(s)

Description

This function transforms the pedigree file to a format which will be used by PCH4GeneralPed(.) function.

Usage

1
ANOVA.data(ntype, c1.traits, Ped)

Arguments

ntype

Vector of integers. Its length equals to the total number of families used in the pedigree file. The ntype's entries are the total number of subjects within each family. It can be obtained using Family.sizes(.) function.

c1.traits

Integer number indicates the column from which the traits begin in the Pedigree file.

Ped

Pedigree file with the first 5 columns should be in the following order: family IDs, subject IDs, father IDs, mother IDs and sex. If there are covariates in the model, they should be introduced after the five standard columns in the pedigree file followed by the quantitative traits.

Value

A list of matrices. Its length equals to the number of families used in the study. Each matrix of this list represents one family of the pedigree file (i. e. each list entry has subjects of a same family as rows and their corresponding traits as columns).

Author(s)

Karim Oualkacha


KarimOualkacha/PCH4Pedigees documentation built on May 20, 2019, 8:30 a.m.