power_beta {eesim} | R Documentation |
Estimate power
Description
Calculates the estimated power of a hypothesis test that the log relative risk equals 0 at a 5% significance level across all simulated data.
Usage
power_beta(df)
Arguments
df |
A data frame of replicated simulations which must include columns
titled |
Value
A data frame with one row with the estimated power of the analysis at the 5% significance level.
Examples
sims <- create_sims(n_reps = 10, n = 600, central = 100,
sd = 10, exposure_type = "continuous",
exposure_trend = "cos1",
exposure_amp = 0.6,
average_outcome = 20,
outcome_trend = "no trend",
rr = 1.01)
fits <- fit_mods(data = sims, custom_model = spline_mod,
custom_model_args = list(df_year = 1))
power_beta(fits)
[Package eesim version 0.1.0 Index]