compute_wt | R Documentation |
Weight value from concave function
compute_wt(z, weights, cfun, s, delta=0.0001)
z |
vector nonnegative values from |
weights |
optional numeric vector of weights. |
cfun |
integer from 1-8, concave function as in |
s |
a numeric value, see details in |
delta |
a positive small value, see details in |
Weight value from concave function
Zhu Wang <wangz1@uthscsa.edu>
Zhu Wang (2020) Unified Robust Estimation, arXiv e-prints, https://arxiv.org/abs/2010.02848
ccglmreg
u <- seq(0, 4, by=0.01) z <- u^2/2 ### this is dfun res <- compute_wt(z, cfun=1, s=1) plot(z, res, ylab="Weight", type="l", lwd=2, main=expression(paste("hcave", " (", sigma, "=1)", )))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.