DESIGN.Matrix.X: Get the model design matrix

Description Usage Arguments Value Author(s)

Description

This function calculates the model design matrix from the pedigree file.

Usage

1
DESIGN.Matrix.X(p, ntype, c1.COV, c1.traits, Ped)

Arguments

p

The number of quantitative traits that are used in the pedigree file.

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.

c1.COV

Integer number indicates the column from which the covariates begin in the Pedigree file. If there is no covariate in the pedigree file, this parameter should be set to zero.

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

The model design matrix.

Author(s)

Karim Oualkacha


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