prep.SEAGLE: Prepare data for input into SEAGLE function

Description Usage Arguments Value Examples

View source: R/prepData.R

Description

This function checks and formats data for input into SEAGLE function

Usage

1
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

1
2
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)

SEAGLE documentation built on Nov. 6, 2021, 1:06 a.m.