permute_ci: Permute for confidence interval

View source: R/permute_ci.R

permute_ciR Documentation

Permute for confidence interval

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

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


dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.