single_mean: Compare a sample mean to a population mean

View source: R/single_mean.R

single_meanR Documentation

Compare a sample mean to a population mean

Description

Compare a sample mean to a population mean

Usage

single_mean(
  dataset,
  var,
  comp_value = 0,
  alternative = "two.sided",
  conf_lev = 0.95,
  data_filter = "",
  envir = parent.frame()
)

Arguments

dataset

Dataset

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

envir

Environment to extract data from

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

single_mean(diamonds, "price") %>% str()


radiant.basics documentation built on Sept. 8, 2023, 5:47 p.m.