Learn R Programming

qtl2pleio (version 1.4.3)

prep_X_list: 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab