rhoMin: Rho Min

Description Usage Arguments Value Examples

View source: R/rhoMin.R

Description

This function calculates the minimum testSetLength where it is possible to get a rho less than alpha for the given parameters of rho.

Usage

1
rhoMin(baserate, alpha = 0.05, inc = 10, printInc = FALSE, ...)

Arguments

baserate

A baserate

alpha

The threshold of significance for rho (similar to an alpha level for a p value), defaulted to 0.05

inc

An integer indicating by how much the testSetLength should increase each iteration

printInc

A boolean indicating whether to print out each increment value with it's corresponding significance for rho

...

Any additional parameters passed into rho

Value

The minimum length of testSet, to the nearest multiple of inc, greater than the minimum length, that would give a value where rho less than alpha becomes mathematically possible.

Examples

1
2
3
4
5
#Add testSetBaserateInflation as an additional parameter
rhoMin(0.2, testSetBaserateInflation = 0.33)

#Add testSetBaserateInflation as well as changing inc and selecting printInc
rhoMin(0.2, inc = 5, printInc = TRUE, testSetBaserateInflation = 0.33)

rhoR documentation built on Sept. 13, 2020, 5:07 p.m.