powered by
Compute a 1-alpha confidence interval for the trimmed mean using a bootstrap percentile t method.
trimcibt(x, nv = 0, tr = 0.2, alpha = 0.05, nboot = 200, ...)
a numeric vector.
value under H0.
trim level for the mean.
alpha level.
number of bootstrap samples.
currently ignored.
Returns an object of class "trimcibt" containing:
"trimcibt"
95% confidence interval
trimmed mean
p-value
t-statistic
trimming level
number of effective observations
Wilcox, R. (2017). Introduction to Robust Estimation and Hypothesis Testing (4th ed.). Elsevier.
onesampb
# NOT RUN { set.seed(123) x <- rnorm(30) trimcibt(x, nboot = 100) ## H0: Psi = 0 # }
Run the code above in your browser using DataLab