Learn R Programming

radiant (version 0.1.95)

single_mean: Compare a sample mean to a population mean

Description

Compare a sample mean to a population mean

Usage

single_mean(dataset, sm_var, data_filter = "", sm_comp_value = 0, sm_alternative = "two.sided", sm_sig_level = 0.95)

Arguments

dataset
Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
sm_var
The variable selected for the mean comparison
data_filter
Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000")
sm_comp_value
Population value to compare to the sample mean
sm_alternative
The alternative hypothesis ("two.sided", "greater", or "less")
sm_sig_level
Span for the confidence interval

Value

A list of variables defined in single_mean as an object of class single_mean

Details

See http://vnijs.github.io/radiant/quant/single_mean.html for an example in Radiant

See Also

summary.single_mean to summarize results

plot.single_mean to plot results

Examples

Run this code
single_mean("diamonds","price")

Run the code above in your browser using DataLab