ci_two_prop_sim: Confidence interval for two proportions, using bootstrapping

Description Usage Arguments

View source: R/ci_two_prop_sim.R

Description

Helper for the inference() function

Usage

1
2
ci_two_prop_sim(y, x, success, conf_level, y_name, x_name, boot_method, nsim,
  seed, show_var_types, show_summ_stats, show_res, show_eda_plot, show_inf_plot)

Arguments

y

Response variable, can be numerical or categorical

x

Explanatory variable, categorical (optional)

success

which level of the categorical variable to call "success", i.e. do inference on

conf_level

confidence level, value between 0 and 1

y_name

Name of response variable as a character string (passed from inference function)

x_name

Name of explanatory variable as a character string (passed from inference function)

boot_method

bootstrap method; "perc" (percentile) or "se" (standard error)

nsim

number of simulations

seed

seed to be set, default is NULL

show_var_types

print variable types, set to verbose by default

show_summ_stats

print summary stats, set to verbose by default

show_res

print results, set to verbose by default

show_eda_plot

print EDA plot, set to verbose by default

show_inf_plot

print inference plot, set to verbose by default


andrewpbray/oilabs documentation built on Feb. 7, 2022, 9:22 a.m.