
activeSetLogCon
, this function computes the values of
xs
. The exact formula for $\widehat F_m$ and $t \in [x_j,x_{j+1}]$ is
Jfunctions
. Closed formulas can also be given for $\widehat f_m^*(t)$
and $\widehat F_m^*(t)$.evaluateLogConDens(xs, res, which = 1:5, gam = NULL, print = FALSE)
"dlc"
, usually a result of a call to logConDens
.1:5
specifying which of the above quantities should be computed.smoothed = TRUE
. The standard deviation of the normal kernel. If equal to
NULL
, gam
is chosen such that the variances of the original sample $x_1, \ldots, x_n$
and $\widexs
.## estimate gamma density
set.seed(1977)
x <- rgamma(200, 2, 1)
res <- logConDens(x, smoothed = TRUE, print = FALSE)
## compute function values at an arbitrary point
xs <- (res$x[100] + res$x[101]) / 2
evaluateLogConDens(xs, res)
## only compute function values for non-smooth estimates
evaluateLogConDens(xs, res, which = 1:3)
Run the code above in your browser using DataLab