single_mean: Compare a sample mean to a population mean

Description Usage Arguments Details Value See Also Examples

View source: R/single_mean.R

Description

Compare a sample mean to a population mean

Usage

1
2
single_mean(dataset, var, comp_value = 0, alternative = "two.sided",
  conf_lev = 0.95, data_filter = "")

Arguments

dataset

Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant

var

The variable selected for the mean comparison

comp_value

Population value to compare to the sample mean

alternative

The alternative hypothesis ("two.sided", "greater", or "less")

conf_lev

Span for the confidence interval

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")

Details

See https://radiant-rstats.github.io/docs/basics/single_mean.html for an example in Radiant

Value

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

See Also

summary.single_mean to summarize results

plot.single_mean to plot results

Examples

1
single_mean("diamonds","price")

radiant.basics documentation built on May 29, 2017, 12:23 p.m.