fit.family | R Documentation |
Fits a family of centers.
fit.family(
x,
w = rep(1, length(x)),
family = "huber",
spread.fun = weighted.mad,
eps = .Machine$double.eps
)
x |
a numeric vector of data |
w |
a numeric vector of weights |
family |
the location family; currently only allows 'huber' for Huber family |
spread.fun |
a function used for the spread of |
eps |
a numerical tolerance parameter |
An object of class fit.family
; a data frame with the following columns:
mu |
the fitted values |
lambda |
the thresholding parameter |
Ryan Thompson <ryan.thompson1@unsw.edu.au>
fit <- fit.family(MASS::galaxies)
plot(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.