permute_ci: Permute for confidence interval

Description Usage Arguments Value Author(s)

View source: R/permute_ci.R

Description

This function takes some data and does permutations on it and passes it along to the indicated function. There are options for permuting genotypes or permuting alleles. Make sure you know the difference.

Usage

1
2
3
4
5
6
7
8
9
permute_ci(
  x,
  stratum = NULL,
  allele_perm = TRUE,
  nperm = 99,
  FUN = NULL,
  replace = FALSE,
  ...
)

Arguments

x

The locus data being used.

stratum

An optional argument if passed, permutes x among strata and gives the results to the function.

allele_perm

A flag (default=TRUE) to permute alleles in the creating the new data set.

nperm

The number of perms to use (default 99).

FUN

the function to pass the permuted data to.

replace

A flag indicating if randomization should be with replacement (default FALSE)

...

Passed on as arguments to FUN.

Value

A vector of permuted response values from the function.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu


MarianaLag/Mlag documentation built on Feb. 13, 2020, 12:30 a.m.