Methods for function validParameter in Package ‘distrMod’
Methods for function validParameter in package distrMod
to check whether a new parameter (e.g. "proposed" by an optimization)
is valid.
validParameter(object, ...) ## S4 method for signature 'ParamFamily' validParameter(object, param) ## S4 method for signature 'L2ScaleUnion' validParameter(object, param, tol=.Machine$double.eps) ## S4 method for signature 'L2ScaleFamily' validParameter(object, param, tol=.Machine$double.eps) ## S4 method for signature 'L2LocationFamily' validParameter(object, param) ## S4 method for signature 'L2LocationScaleFamily' validParameter(object, param, tol=.Machine$double.eps) ## S4 method for signature 'BinomFamily' validParameter(object, param, tol=.Machine$double.eps) ## S4 method for signature 'PoisFamily' validParameter(object, param, tol=.Machine$double.eps) ## S4 method for signature 'L2ScaleShapeUnion' validParameter(object, param, tol=.Machine$double.eps)
object |
an object of class |
param |
either a numeric vector or an object of class
|
tol |
accuracy upto which the conditions have to be fulfilled |
... |
additional argument(s) for methods. |
method for signature
ParamFamilychecks if all parameters are finite by is.finite
if their length is between 1 and the joint length of main and nuisance parameter
of object, and finally, if a call to modifyParam(object) with
argument param would throw an error.
L2ScaleUnionchecks if the parameter is finite by is.finite,
and if it is strictly larger than 0 (upto argument tol).
L2ScaleFamilychecks if the parameter length is 1,
and otherwise uses L2ScaleUnion-method.
L2LocationFamilychecks if the parameter is finite by is.finite,
if its length is 1
L2LocationScaleFamilychecks if the parameter length is 1 or 2
(e.g. if one features as nuisance parameter), and also uses L2ScaleUnion-method.
BinomFamilychecks if the parameter is finite by is.finite,
if its length is 1, and if it is strictly larger than 0 and strictly smaller than 1
(upto argument tol)
PoisFamilychecks if the parameter is finite by is.finite,
if its length is 1, and if it is strictly larger than 0 (upto argument tol)
L2ScaleShapeUnionuses L2ScaleUnion-method, checks if parameter
length is 1 or 2 (e.g. if one features as nuisance parameter), and if
shape is strictly larger than 0 (upto argument tol)
logical of length 1 — valid or not
NS <- NormLocationScaleFamily() validParameter(NS, c(scale=0.1, loc=2)) validParameter(NS, c(scale=-0.1, loc=2)) validParameter(NS, c(scale=0, loc=2)) validParameter(NS, c(mean=2, sd=2))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.