grouped_proptest: Function to run proportion test on grouped data.

Description Usage Arguments Value Examples

View source: R/grouped_proptest.R

Description

Function to run proportion test on grouped data.

Usage

1
grouped_proptest(data, grouping.vars, measure, ...)

Arguments

data

Dataframe (or tibble) from which variables are to be taken.

grouping.vars

Grouping variables.

measure

A variable for which proportion test needs to be carried out for each combination of levels of factors entered in grouping.vars.

...

Currently ignored.

Value

Dataframe with percentages and statistical details from a proportion test.

Examples

1
2
3
4
5
6
7
8
# for reproducibility
set.seed(123)

groupedstats::grouped_proptest(
  data = mtcars,
  grouping.vars = cyl,
  measure = am
)

IndrajeetPatil/groupedstats documentation built on June 6, 2020, 9:57 a.m.