Learn R Programming

cape (version 2.0.2)

error.prop: Estimate Errors of Regression Coefficients

Description

This function uses error propagation formulas for quantities computed from regression coefficients to estimate the error for all regression coefficients.

Usage

error.prop(data.obj, pairscan.obj, perm = FALSE, verbose = FALSE, n.cores = 2)

Arguments

data.obj
The object in which all results are stored. See read.population.
pairscan.obj
The object in which the results from the pairscan are stored. See pairscan.
perm
A logical value to indicate whether error propagation should be performed on the test statistics (FALSE) or the permuted test statistics (TRUE).
verbose
A logical value to indicate whether the progress of the function should be printed to the screen.
n.cores
An integer specifying the number of cores to be used in parallel processing.

Value

This function returns the data object with a new list element: var.to.var.influences if perm is set to FALSE and var.to.var.influences.perm if perm is set to TRUE. These tables include the errors calculated for the marker1 to marker2 influences as well as the marker2 to marker1 influences. These results are used by calc.p to calculate empirical p values.

References

Carter, G. W., Hays, M., Sherman, A., & Galitski, T. (2012). Use of pleiotropy to model genetic interactions in a population. PLoS genetics, 8(10), e1003010. doi:10.1371/journal.pgen.1003010

Bevington PR (1969) Data Reduction and Error Analysis for the Physical Sciences. New York: McGraw-Hill.