summary.prm_power: Summarize a power analysis of a randomization test

Description Usage Arguments Author(s) Examples

Description

Summarize a power analysis of a randomization test

Usage

1
summary.prm_power(object, alpha, alternative, ...)

Arguments

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"

Author(s)

kholub

Examples

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')

holub008/nymph documentation built on June 4, 2019, 10:47 a.m.