prep_X_list {qtl2pleio}R Documentation

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

Description

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

Usage

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

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)

[Package qtl2pleio version 1.4.3 Index]