sig_val_auto | R Documentation |
sig_val_auto(
variables,
crossvar,
data,
crossvartype,
testtypes,
reporttest = TRUE,
correction_type = "none",
sig = 0.05,
stars = TRUE,
digs = 3,
force_fisher = FALSE,
force_anova = FALSE,
force_t = FALSE
)
variables |
a vector of variable names for variables that you want to cross |
crossvar |
the variable to cross against all in the 'variables' argument |
data |
the data frame containing the variables in 'variables' and 'crossvar' |
crossvartype |
the type of the cross variable. types can be 'b', 'f' which are binary, and factor respectively |
testtypes |
a vector of types of the variables. types can be 'b', 'f', or 'c' which are binary, factor, and continuous respectively |
reporttest |
boolean indicating if the type of test run should be added as a variable, default is yes |
correction_type |
type of p value correction to apply for multiple comparisons. default is 'none'. this uses the p.adjust from stats package so any adjustment name there will work here |
sig |
the significance value to use. default is .05 |
stars |
boolean indicating whether to add stars to significance values. default is TRUE |
digs |
number of digits to round values to. default is 3 |
force_fisher |
boolean indicating if fisher's exact test should be used with two binary variables even if other assumptions are violated (e.g. <20 \itemforce_anovaboolean indicating if anova should be used with a factor and continuous variable even normality (shapiro wilk) is violated \itemforce_tboolean indicating if t test should be used with a binary and continuous variable even normality (shapiro wilk) is violated |
significance values creator with adjustment option testtypes and crossvar type can take the form (b,f,c) for binary, factor, or continuous sig_val_auto_function()
crosstab p pvalue sig_val_auto significance value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.