genperms: Generate permutations of a phenotype vector

Description Usage Arguments Value Author(s) Examples

Description

Given a vector, generate n.perm samples and return a matrix with each permutation in each column.

Usage

1
  genperms(pheno, n.perm = 0)

Arguments

pheno

a vector to be permuted

n.perm

the number of times to permute

Value

a matrix with dimensions length(pheno) x n.perm.

Author(s)

Chris Wallace <chris.wallace at cimr.cam.ac.uk>

Examples

1
2
y <- rbinom(50,2,0.3)
genperms(y,4)

chr1swallace/wgsea documentation built on May 13, 2019, 6:20 p.m.