data(MktDATA, package = "UBStats")
# CI for the mean with KNOWN variance; default options
CI.mean(AOV, sigma = 30, data = MktDATA)
# CI for the mean with UNKNOWN variance;
# - change digits and confidence level 0.99
CI.mean(AOV, conf.level = 0.99, digits = 3, data = MktDATA)
# Arguments force.digits and use.scientific
# A variable taking very small values
SmallX<-MktDATA$AOV/5000
# - Default: manages possible excess of rounding
CI.mean(SmallX)
# - Forcing digits to the default values (2)
CI.mean(SmallX, force.digits = TRUE)
# - Allow scientific notation
CI.mean(SmallX, use.scientific = TRUE)
# Output the table with the requested interval
out.ci_mean<-CI.mean(AOV, data = MktDATA)
Run the code above in your browser using DataLab