/
prep_X_list.Rd
27 lines (24 loc) · 955 Bytes
/
prep_X_list.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prep_mytab.R
\name{prep_X_list}
\alias{prep_X_list}
\title{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{
\item{indices}{a vector of integers}
\item{start_snp}{an integer denoting the index (within genotype probabilities array) where the scan should start}
\item{probs}{a three-dimensional array of genotype probabilities for a single chromosome}
\item{covariates}{a matrix of covariates}
}
\value{
a list of design matrices, ultimately useful when constructing the (multi-locus) design matrix
}
\description{
Create a list of component X matrices for input to stagger_mats, to ultimately create 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)
}