ht_single_prop_sim: Hypothesis testing for one proportion, using randomization

Description Usage Arguments

View source: R/ht_single_prop_sim.R

Description

Helper for the inference() function

Usage

1
2
ht_single_prop_sim(y, success, null, alternative, nsim, seed, y_name,
  show_var_types, show_summ_stats, show_eda_plot, show_inf_plot, show_res)

Arguments

y

Response variable, can be numerical or categorical

success

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

null

null value for a hypothesis test

alternative

direction of the alternative hypothesis; "less", "greater", or "twosided"

nsim

number of simulations

seed

seed to be set, default is NULL

y_name

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

show_var_types

print variable types, set to verbose by default

show_summ_stats

print summary stats, 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

show_res

print results, set to verbose by default


OpenIntroOrg/oilabs-r-package documentation built on June 18, 2020, 4:39 p.m.