Description Usage Arguments Examples
Calculates bootstrap variability estimates
1 2 3 |
incidence |
a test_inc object returned by testing_incidence. |
nrep |
The number of bootstrap replications (ignored if rep_weights is not null. |
rep_weights |
A dataframe of replicate weights. |
type |
The type of resampling weights. See svrepdesign. |
combined_weights |
TRUE if the rep_weights already include the sampling weights. This is usually the case. |
show_progress |
If TRUE, prints bootstrap progress. This may also be a callback function taking one parameter equal to the index of the current replicate. |
... |
additional parameters to svrepdesign. |
1 2 3 4 5 6 7 8 9 10 | data(tstdat)
tstdat$age <- rep(15:64, 200)
inc <- with(tstdat, testing_incidence(report_pos, hiv,
ever_test, last_test,
biomarker_art=biomarker_art, low_viral=low_viral))
# Simple random sample bootstrap with 5 replicates.
bootstrap_incidence(inc,nrep=5, show_progress=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.