prep_X_list: Create a list of component X matrices for input to...

Description Usage Arguments Value Examples

View source: R/prep_mytab.R

Description

Create a list of component X matrices for input to stagger_mats, to ultimately create design matrix

Usage

1
prep_X_list(indices, start_snp, probs, covariates)

Arguments

indices

a vector of integers

start_snp

an integer denoting the index (within genotype probabilities array) where the scan should start

probs

a three-dimensional array of genotype probabilities for a single chromosome

covariates

a matrix of covariates

Value

a list of design matrices, ultimately useful when constructing the (multi-locus) design matrix

Examples

1
2
pp <- array(rbinom(n = 200, size = 1, prob = 0.5), dim = c(10, 2, 10))
prep_X_list(1:3, 1, probs = pp, covariates = NULL)

fboehm/qtl2pleio documentation built on July 17, 2021, 11:34 p.m.