For fitted models, this command carries out sensitivity analysis for a number of models, when their parameters stored in a data.frame.

mkonfound(d, t, df, alpha = 0.05, tails = 2, return_plot = FALSE)

Arguments

d

data.frame or tibble with the t-statistics and associated degrees of freedom

t

t-statistic or vector of t-statistics

df

degrees of freedom or vector of degrees of freedom associated with the t-statistics in the t argument

alpha

probability of rejecting the null hypothesis (defaults to 0.05)

tails

integer whether hypothesis testing is one-tailed (1) or two-tailed (2; defaults to 2)

return_plot

whether to return a plot of the percent bias; defaults to FALSE

Value

prints the bias and the number of cases that would have to be replaced with cases for which there is no effect to invalidate the inference for each of the cases in the data.frame

Examples

if (FALSE) { mkonfound_ex str(d) mkonfound(mkonfound_ex, t, df) }