Skip to contents

Among statistically significant results, the proportion that have the wrong sign relative to the true effect. Returns NA when true_effect is 0.

Usage

sim_type_s_error(estimates, p_values, true_effect, alpha = 0.05)

Arguments

estimates

Numeric vector of point estimates.

p_values

Numeric vector of p-values.

true_effect

Scalar true effect value.

alpha

Significance level (default 0.05).

Value

Scalar Type S error rate, or NA for null effects.