mhde.crit: Utility function for retrieving the critical value for any...

Description Usage Arguments Value Examples

View source: R/mhde.R

Description

This function calculates the critical value for the minimized Hellinger distance for a given sample size and probability level for a goodness of fit test for normality.

P values below 0.0001 return the value for p=0.0001 P values above 0.9999 return the value for p=0.9999

This utility function is not used by the other functions. It is provided as a "curiosity" for users.

Usage

1
mhde.crit(Nsize, Plevel = 0.95)

Arguments

Nsize

The sample size is defined using Nsize. No default value is set.

Plevel

The probability level associated with the critical value is set using Plevel. The default value is 0.95. The α level of the test is 1-Plevel.

Value

pval Critical value for the minimized Hellinger distance

Examples

1
2
3
4
5
## example using default alpha level of .05
mhde.crit(45)

## example using alpha level of .01
mhde.crit(45, 0.99)

mhde documentation built on May 2, 2019, 5:57 a.m.