validate_accuracy: Validate computational accuracy of Known Population Median...

Description Usage Arguments Value

Description

The implementation of the exact analytical solution of the Known Population Median Test involves approximations using the Stirling series and is therefore suspect for computational error. This function creates a population and empirically computes p-values via resampling. It then compares these empirical p-values to those calculated by the Known Population Median Test, and returns the error in log(p). WARNING! Takes a long time.

Usage

1
validate_accuracy(N = 50, n = 10, nrep = 1e+08)

Arguments

N

population size

n

sample size

nrep

number of resampling samples for empirically estimating p-values.

Value

data frame with log(p) error and other information.


kpmt documentation built on May 1, 2019, 7:58 p.m.

Related to validate_accuracy in kpmt...