cutoff
.cutoff(name = "empirical", body.fct0,
cutoff.quantile = 0.95,
norm = NormType(), QF, nsim = 100000)
cutoff.sememp()
cutoff.chisq()
"cutoff"
.cutoff
generates a valid object of class "cutoff"
.
As function slot fct
may only have a formal argument data
,
the other arguments to determine the cutoff value, i.e. norm
, QF
, nsim
,
cutoff.quantile
, nsim
have to enter the scope of this
function by lexical scoping; now cutoff.quantile
, norm
, QF
are to be taken from the calling environment (not from the defining one),
so we have delay evaluation of the function body, which is why we assume
it to be given wrapped into substitute
resp. quote
.
body.fct0
is by default (i.e. if argument body.fct0
is missing) set
to quote(quantile(slot(norm,"fct")(data), cutoff.quantile))
, internally,
i.e.; to an empirical quantile of the corresponding norms.
cutoff.sememp()
is a helper function generating the theoretical (asymptotic)
quantile of (the square root of) a corresponding quadratic form, assuming multivariate
normality; to determine this quantile nsim
simulations are used.
cutoff.chisq()
is a helper function generating the theoretical (asymptotic)
quantile of (the square root of) a (self-standardized) quadratic form, assuming multivariate
normality; i.e.; a corresponding quantile of a Chi-Square distribution.cutoff-class
, ddPlot
cutoff()
cutoff.sememp()
cutoff.chisq()
Run the code above in your browser using DataLab