Last chance! 50% off unlimited learning
Sale ends in
bounds(y, type = "MRC", ...)
bounds.MRC(y, q, alpha = 0.05, r = ceiling(50 / min(alpha, 1 - alpha)),
lengths = if(family == "gaussKern")
2^(floor(log2(length(y))):ceiling(log2(length(param$kern)))) else
2^(floor(log2(length(y))):0), penalty = c("none", "len", "var", "sqrt"),
name = if(family == "gaussKern") ".MRC.ktable" else ".MRC.table", pos = .GlobalEnv,
family = c("gauss", "gaussvar", "poisson", "binomial","gaussKern"), param = NULL,
subset, max.iter = 1e2, eps = 1e-3)
## S3 method for class 'bounds':
[(x, subset)
"MRC"
are implementedbounds.MRC
alpha
and r
will be ignoredalpha
"none"
for no penalty, "len"
for penalizing the length of an interval, "var"
for penalizing the variance over an interval, and "sqrt"
for penalizing the squy
for which bounds should be aggregatedassign
bounds
bounds
, i.e. a list whose entry bounds
contains two-sided bounds (lower
and upper
) of the considered intervals (with left index li
and right index ri
) in a data.frame
, along with a vector start
specifying in which row of entry bounds
intervals with corresponding li
start (if any; specified as a C-style index), and a logical
feasible
telling whether a feasible solution exists for these bounds (always TRUE
for MRC bounds which are not restricted to a subset
).stepbound
, family# simulate signal of 100 data points
Y <- rpois(100, 1:100 / 10)
# compute bounds for intervals of dyadic lengths
b <- bounds(Y, penalty="len", family="poisson", q=4)
# compute bounds for all intervals
b <- bounds(Y, penalty="len", family="poisson", q=4, lengths=1:100)
Run the code above in your browser using DataLab