View source: R/compute_quantiles.R
compute_quantiles | R Documentation |
Calculate quantiles for samples of rates and cumulative hazard
outputted from threemc_fit_model, and add them as columns to
the shell data.frame
out
with estimated empirical circumcision rates.
compute_quantiles(
out,
fit,
area_lev = NULL,
probs = c(0.025, 0.5, 0.975),
names = FALSE,
...
)
out |
Shell dataset with a row for every unique record in circumcision survey data for a given area. Also includes empirical estimates for circumcision estimates for each unique record. |
fit |
Optional "small" fit object with no |
area_lev |
PSNU area level for specific country. |
probs |
Specific quantiles to be calculated, Default: c(0.025, 0.5, 0.975) |
names |
Parameter with quantile: logical; if true, the result has a names attribute. Set to FALSE for speedup with many probs, Default: FALSE |
... |
Further arguments passed to quantile. |
Input out
data.frame
, including columns with quantiles for
hazard rates etc for different circumcision types, and for overall
circumcision.
threemc_fit_model
quantile
@importFrom dplyr %>%
@importFrom rlang .data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.