single_prop: Compare a sample proportion to a population proportion

Description Usage Arguments Details Value See Also Examples

View source: R/single_prop.R

Description

Compare a sample proportion to a population proportion

Usage

1
2
single_prop(dataset, var, lev = "", comp_value = 0.5,
  alternative = "two.sided", conf_lev = 0.95, data_filter = "")

Arguments

dataset

Dataset

var

The variable selected for the proportion comparison

lev

The factor level selected for the proportion comparison

comp_value

Population value to compare to the sample proportion

alternative

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

conf_lev

Span of 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_prop.html for an example in Radiant

Value

A list of variables used in single_prop as an object of class single_prop

See Also

summary.single_prop to summarize the results

plot.single_prop to plot the results

Examples

1
2
single_prop(diamonds, "cut") %>% str()
single_prop(diamonds, "clarity", lev = "IF", comp_value = 0.05) %>% str()

radiant.basics documentation built on June 15, 2018, 1:05 a.m.