powered by
Computes mean, standard deviation, median, MAD, trimmed mean, and bootstrap confidence intervals for a numeric vector.
robust_summary(x, bootstrap_reps = 200L, trim_proportion = 0.1)
A list containing:
Arithmetic mean
Standard deviation
Median
Median Absolute Deviation (scaled)
Trimmed mean
Vector of length 2 with 95 percent bootstrap CI bounds
Numeric vector.
Number of bootstrap replications for CI. Default 200.
Proportion to trim for trimmed mean. Default 0.10.
set.seed(123) x <- rnorm(50) robust_summary(x)
Run the code above in your browser using DataLab