Description Usage Arguments Examples
View source: R/ch4_perm_test.R
Permutation Test Function to conduct permutation test on different columns
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)
|
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 "<=" |
1 | dd <- ch4_perm_test(input = top100_clusts, column = 'ntows', ndraws = 50)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.