Define strata based on rows of a matrix
Use the rows of a matrix to define a set of strata for a stratified permutation test
mat2strata(mat)
mat |
A covariate matrix, as individuals x covariates |
A vector of character strings: for each row of mat
,
we use base::paste()
with collapse="|"
.
iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2")) Xcovar <- get_x_covar(iron) perm_strata <- mat2strata(Xcovar)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.