Description Usage Arguments Author(s) Examples
Print a permutation test power analysis
1 | print.prm_power(x, ...)
|
x |
a prm_power object to be printed |
kholub
1 2 3 4 5 | gen_data <- function(){ data.frame(x = c(rnorm(50), rnorm(50, 1)), class = rep(c('a', 'b'), each = 50)) }
mcrp <- mcr_power(gen_data, c(mean = function(df){ mean(df[df$class == 'a', 'x']) - mean(df[df$class == 'b', 'x']) },
median = function(df){ median(df[df$class == 'a', 'x']) - median(df[df$class == 'b', 'x']) }),
'class')
print(mcrp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.