mat2strata: Define strata based on rows of a matrix

Description Usage Arguments Value See Also Examples

View source: R/mat2strata.R

Description

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

Usage

1

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

qtl2geno::get_x_covar(), scan1perm()

Examples

1
2
3
4
5
library(qtl2geno)
iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2geno"))

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

rqtl/qtl2scan documentation built on May 28, 2019, 2:36 a.m.