getMatPseudo {trio} | R Documentation

## Generates Case-Pseudo-Control Matrix

### Description

Generates a matrix containing the genotypes of the cases and the corresponding three pseudo-controls (i.e. the genotypes of the children and the respective corresponding three genotypes not transmitted from the parents).

### Usage

    getMatPseudo(mat.snp)

### Arguments

`mat.snp` | a numeric matrix in which each column represents a SNP. Each column must be a numeric vector of length 3 * t representing a SNP genotyped at t trios. Each of the t blocks must consist of the genotypes of father, mother, and offspring (in this order). The genotypes must be coded by 0, 1, and 2. Missing values are allowed and need to be coded by `NA`. This matrix might be generated from a ped-file by, e.g., employing `ped2geno`.

### Value

A matrix with 4 * t rows, in which each block of four consecutive rows consists of the genotypes of the SNPs in `mat.snp` for the case and the three matched pseudo-controls corresponding to the respective block in `mat.snp`.

### Author(s)

Holger Schwender, holger.schwender@udo.edu

### See Also

`colTDT`, `colTDT2way`, `colGxE`

### Examples

    # Load the simulated data.
    data(trio.data)

    # The matrix with the genotypes of the offspring and the three
    # pseudo-controls for each of the trios in mat.test can be
    # generated by
    matPseudo <- getMatPseudo(mat.test)

[Package trio version 3.28.0 Index]