sim is a function that Iterates a simulation function design to assess bias across different boostrap procedures.

sim(
  nsims = 200,
  n = 1000,
  times = c(times = c(5, 10, 15, 20)),
  nboot = 100,
  models,
  ...
)

Arguments

nsims

The number of simulations to conduct

n

The size of the data to be simulated.

times

The times at which to evaluate estimates of risk

nboot

The number of bootstrap iterations to conduct

models

A model_specification object

...

Additional arguments for the simulation function

Value

Two tables with estimated bias and coverage probabilities for the estimated risk and risk difference and associated confidence intervals.

Author

M. Alan Brookhart