validUDinput {upndown} | R Documentation |
Data Validation Utilities for upndown
Description
Validation of input values
Usage
validUDinput(cdf, target)
checkTarget(target, tname = "Target")
checkCDF(cdf)
checkNatural(k, parname, toolarge = 1000)
checkDose(x, maxfrac = 0.5)
checkResponse(y)
Arguments
cdf |
vector of values, should be nondecreasing between 0 and 1 (inclusive) |
target |
numeric value(s), should be between 0 and 1 (exclusive) |
k |
( |
parname , tname |
string, name of variable to plug in for reporting the error back |
toolarge |
( |
x |
( |
maxfrac |
( |
y |
( |
Value
If a validation issue is found, these functions stop with a relevant error message. If no issue is found, they run through without returning a value.