Hypothesis tests and confidence intervals
inference(
y,
x = NULL,
data,
type = c("ci", "ht"),
statistic = c("mean", "median", "proportion"),
success = NULL,
order = NULL,
method = c("theoretical", "simulation"),
null = NULL,
alternative = c("less", "greater", "twosided"),
sig_level = 0.05,
conf_level = 0.95,
boot_method = c("perc", "se"),
nsim = 15000,
seed = NULL,
verbose = TRUE,
show_var_types = verbose,
show_summ_stats = verbose,
show_eda_plot = verbose,
show_inf_plot = verbose,
show_res = verbose
)
Response variable, can be numerical or categorical
Explanatory variable, categorical (optional)
Name of data frame that y and x are in
of inference; "ci" (confidence interval) or "ht" (hypothesis test)
parameter to estimate: mean, median, or proportion
which level of the categorical variable to call "success", i.e. do inference on
when x is given, order of levels of x in which to subtract parameters
of inference; "theoretical" (CLT based) or "simulation" (randomization/bootstrap)
null value for a hypothesis test
direction of the alternative hypothesis; "less","greater", or "twosided"
significance level, value between 0 and 1 (used only for ANOVA to determine if posttests are necessary)
confidence level, value between 0 and 1
bootstrap method; "perc" (percentile) or "se" (standard error)
number of simulations
seed to be set, default is NULL
whether output should be verbose or not, default is TRUE
print variable types, set to verbose by default
print summary stats, set to verbose by default
print EDA plot, set to verbose by default
print inference plot, set to verbose by default
print results, set to verbose by default
Results of inference task performed