Arguments
dataset
Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
sp_var
The variable selected for the proportion comparison
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")
sp_levels
The factor level selected for the proportion comparison
sp_comp_value
Population value to compare to the sample proportion
sp_alternative
The alternative hypothesis ("two.sided", "greater", or "less")
sp_sig_level
Span of the confidence interval