Skip to contents

All functions

calculate_exposure()
Calculates the exposure rate applied to each year provided month of policy implementation and number of years to full implementation
dispatch_simulations()
Dispatch Simulations
exposure_list()
Applies a time-varying treatment effect
model_terms()
Parse a formula object into its left-hand-side and right-hand-side components
optic_model()
Optic Model
optic_simulation()
Create a configuration object used to run simulations
overdoses
OPTIC Overdoses example data.
sim_bias()
Bias of point estimates
sim_correct_rejection_rate()
Correct rejection rate
sim_correction_factor()
Empirical correction factor
sim_coverage()
Coverage of confidence intervals
sim_mse()
Mean squared error
sim_rejection_rate()
Rejection rate (Type I error under the null)
sim_type_s_error()
Type S (sign) error rate
summarize_simulation()
Summarize simulation results