mat2strata: Define strata based on rows of a matrix

View source: R/mat2strata.R

mat2strataR Documentation

Define strata based on rows of a matrix

Description

Use the rows of a matrix to define a set of strata for a stratified permutation test

Usage

mat2strata(mat)

Arguments

mat

A covariate matrix, as individuals x covariates

Value

A vector of character strings: for each row of mat, we use base::paste() with collapse="|".

See Also

get_x_covar(), scan1perm()

Examples

iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2"))

Xcovar <- get_x_covar(iron)
perm_strata <- mat2strata(Xcovar)


rqtl/qtl2 documentation built on March 20, 2024, 6:35 p.m.