ch4_perm_test: Permutation Test Function to conduct permutation test on...

Description Usage Arguments Examples

View source: R/ch4_perm_test.R

Description

Permutation Test Function to conduct permutation test on different columns

Usage

1
2
3
ch4_perm_test(input, column, ndraws = 1000, gb = "set_year, unq_clust",
  summ = "length(species)", clust_cat = "unq_clust", seed = 12345,
  crit = "<=", annual = TRUE, save_resamps = FALSE)

Arguments

input

Input data frame

column

Column to permute

ndraws

Number of draws; defaults to 1000

gb

Character string of things to group by for the parse statements

summ

How to group things for resampling? Either by cluster, or cluster and type of species.

seed

Random sampling seed

annual

Resample annual averages (TRUE)? Or resample tows then calculate annual averages (FALSE)

save_resamps

Save resampled values?

cri

Criteria for determing p-value, should be "<" or "<="

Examples

1
dd <- ch4_perm_test(input = top100_clusts, column = 'ntows', ndraws = 50)

peterkuriyama/ch4 documentation built on June 18, 2021, 9:59 a.m.