Description Usage Arguments Author(s) Examples
Print a power analysis summary of a permutation test
1 |
x |
a summary.prm_power object to be printed |
kholub
1 2 3 4 5 6 | 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')
s <- summary(mcrp, .05, 'two.sided')
print(s)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.