onesample_parameters {conTree}R Documentation

Return the one sample parameters used in fortran discrepancy functions

Description

These functions are mostly useful when one wants to test one's own discrepancy function in R f(y, z, w) to determine if the results are correct. So a natural test is to experiment by programming one of the already implemented discrepancy functions in R. However, the Fortran implementations of such discrepancy measures use some parameters in the computations and therefore the returned results from a simple R implementation may not exactly match. Using these parameters, one can ensure that they do. These are to be interpreted as follows. For one sample, the type = "dist" implementation in the package returns 0 if the length of y is less than nmin which is (100L). The eps = 1.0e-5 parameter is used to ensure that the denominator in the formula for the Anderson-Darling statistic is at least eps. Next, for type = "prob", if the length of the vector is less than nmin = 20 the discrepancy is computed to be 0. And so on. Refer to the R and Fortran source for further details as this is an advanced topic.

Usage

onesample_parameters()

twosample_parameters()

Value

a named list for each of the types.


[Package conTree version 0.3-1 Index]