Learn R Programming

MBASED (version 1.6.0)

testQuantiles: Function to test quantile equality for theoretical and observed distributions

Description

Function to test quantile equality for theoretical and observed distributions

Usage

testQuantiles(theoreticalCumDist, observedCumDist, numTotalCounts, numSEsToCheck, errorMessage)

Arguments

theoreticalCumDist
for (unspecified) value of x, P(X
observedCumDist
for (unspecified) value of x, observed Fraction(values
numTotalCounts
Num(total values) (see argument observedCumDist)
numSEsToCheck
number of standard errors to go in each direction from theoretical quantity to see if the estimate falls into the confidence interval
errorMessage
error message to return if observed fraction falls outside of confidence interval

Value

TRUE (all tests were passed, otherwise exits with error message).

Details

For some random variable X, observed sample x1, x2, .., xN, and attainable value x, we compare theoretical P(X

See Also

Other unitTestsFunctions: testNumericDiff