## Scalar mean
data("precip")
fit <- el_mean(precip, 30)
fit
summary(fit)
## Vector mean
data("faithful")
fit2 <- el_mean(faithful, par = c(3.5, 70))
summary(fit2)
## Weighted data
w <- rep(c(1, 2), each = nrow(faithful) / 2)
fit3 <- el_mean(faithful, par = c(3.5, 70), weights = w)
summary(fit3)
Run the code above in your browser using DataLab