powered by
Compare a sample mean to a population mean
single_mean( dataset, var, comp_value = 0, alternative = "two.sided", conf_lev = 0.95, data_filter = "", envir = parent.frame() )
A list of variables defined in single_mean as an object of class single_mean
Dataset
The variable selected for the mean comparison
Population value to compare to the sample mean
The alternative hypothesis ("two.sided", "greater", or "less")
Span for the confidence interval
Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000")
Environment to extract data from
See https://radiant-rstats.github.io/docs/basics/single_mean.html for an example in Radiant
summary.single_mean to summarize results
summary.single_mean
plot.single_mean to plot results
plot.single_mean
single_mean(diamonds, "price") %>% str()
Run the code above in your browser using DataLab