powered by
Function to run proportion test on grouped data.
grouped_proptest(data, grouping.vars, measure, ...)
Dataframe (or tibble) from which variables are to be taken.
Grouping variables.
A variable for which proportion test needs to be carried out for each combination of levels of factors entered in grouping.vars.
grouping.vars
Currently ignored.
Dataframe with percentages and statistical details from a proportion test.
# NOT RUN { # for reproducibility set.seed(123) ggstatsplot:::grouped_proptest( data = mtcars, grouping.vars = cyl, measure = am ) # }
Run the code above in your browser using DataLab