powered by
Create a list of component X matrices for input to stagger_mats, to ultimately create design matrix
prep_X_list(indices, start_snp, probs, covariates)
a vector of integers
an integer denoting the index (within genotype probabilities array) where the scan should start
a three-dimensional array of genotype probabilities for a single chromosome
a matrix of covariates
a list of design matrices, ultimately useful when constructing the (multi-locus) design matrix
# 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