prep.SEAGLE {SEAGLE} | R Documentation |
Prepare data for input into SEAGLE function
Description
This function checks and formats data for input into SEAGLE function
Usage
prep.SEAGLE(y, X, intercept, E, G)
Arguments
y |
Vector of observed phenotypes |
X |
Matrix of covariates without genetic marker interactions |
intercept |
1 if the first column of X is the all ones vector, 0 otherwise |
E |
E Vector of environmental covariates |
G |
G Matrix of genotype data |
Value
List object containing prepared data for input into SEAGLE function
Examples
dat <- makeSimData(H=cosihap, n=500, L=10, gammaG=1, gammaGE=0, causal=4, seed=1)
objSEAGLE <- prep.SEAGLE(y=dat$y, X=dat$X, intercept=1, E=dat$E, G=dat$G)
[Package SEAGLE version 1.0.1 Index]