R: Utility function for retrieving the critical value for any...
mhde.crit
R Documentation
Utility function for retrieving the critical value for any sample size and desired α level
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
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
## example using default alpha level of .05
mhde.crit(45)
## example using alpha level of .01
mhde.crit(45, 0.99)