View source: R/numericFunctions.R
| BBS_mortality | R Documentation |
BBS_mortality computes estimates of the probability of
death over some time interval (determined by the survey questions) among
members of key populations using information about contacts collected as part
of Bio-Behavioral Surveillance Surveys. Estimation includes bootstrap
confidence intervals.
BBS_mortality(
.data,
n_know = NULL,
n_lost = NULL,
n_died = NULL,
degree = NULL,
recall_max = 100,
R = 2000L,
conf = 0.95,
ci_type = c("bca", "perc", "basic")
)
.data |
a dataframe containing the four variables. |
n_know |
a character string naming the variable containing the number of contacts known by the subject and who know the subject within the past time interval. |
n_lost |
a character string naming the variable containing the subset
of |
n_died |
a character string naming the variable containing the subset
of |
degree |
a character string naming the variable containing the network degree of the subject. |
recall_max |
the maximum contact count that is deemed plausible. Default: 100. |
R |
an integer-valued count of the number of bootstrap replicates desired for estimation of confidence limits. Default: 2000. |
conf |
the desired confidence level. Default: 0.95. |
ci_type |
a character string naming the type of bootstrap confidence
interval desired; one of |
BBS_mortality eliminates records for which
n_know < n_lost + n_died and any observations containing
missing values for those variables are also removed.
A dataframe containing the following variables:
Pr_deathThe estimated probability of mortality
SEThe standard error of the estimate
lowerThe lower confidence limit
upperThe upper confidence limit
conf_levelThe confidence level
typeThe type of bootstrap confidence interval
Ian Fellows and Steve Gutreuter. Algorithm by Ian Fellows.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.