compute_g {mpath} | R Documentation |
Compute concave function values
Description
Compute concave function values
Usage
compute_g(z, cfun, s, delta=0.0001)
Arguments
z |
vector nonnegative values from |
cfun |
integer from 1-8, concave function as in |
s |
a numeric value, see details in |
delta |
a positive small value, see details in |
Value
Concave function values
Author(s)
Zhu Wang <zwang145@uthsc.edu>
References
Zhu Wang (2024) Unified Robust Estimation, Australian & New Zealand Journal of Statistics. 66(1):77-102.
See Also
Examples
u <- seq(0, 4, by=0.01)
z <- u^2/2 ### this is dfun
res <- compute_g(z, cfun=1, s=1)
plot(z, res, ylab="Weight", type="l", lwd=2,
main=expression(paste("hcave", " (", sigma, "=1)", )))
[Package mpath version 0.4-2.26 Index]