Description Usage Arguments Author(s) Examples
Summarize a power analysis of a randomization test
1 | summary.prm_power(object, alpha, alternative, ...)
|
object |
a prm_power object to be summarized |
alpha |
the numeric significance level(s) [0-1] used in inference - determines the FPR |
alternative |
the alternative hypotheses for p-value determination. one of "less", "greater", "two.sided" |
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')
summary(mcrp, .05, 'two.sided')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.