Learn R Programming

cape (version 2.0.2)

one.singlescan: Runs one singlescan

Description

This function is called by pairscan.null to generate a permuted list of marker effects. The top N markers are selected from this permutation, where N is the number of markers selected for the pairscan. These markers are then permuted in pairs to generate a null distribution for pairscan.

Usage

one.singlescan(phenotype.vector, genotype.mat, covar.vector = NULL, n.cores = 2)

Arguments

phenotype.vector
A numeric vector holding the phenotype value, or permuted phenotype value, for each individual.
genotype.mat
A matrix of numeric phenotypes, which are to be associated with the phenotype.
covar.vector
A vector of 0's and 1's, indicating which markers are to be used as covariates in the model.
n.cores
An integer specifying the number of cores to be used in parallel processing.

Value

This function returns a table holding the beta, standard error, t statistic and p value for each marker associated with the phenotype.

See Also

pairscan, pairscan.null