View source: R/numericFunctions.R
Oz_incidencer | R Documentation |
Estimate HIV incidence rate (infections per person-year) as the simple ratio of the numbers of infections to the total imputed time at risk. Frequentist confidence intervals are computed by bootstrapping. Dates of infection are known only within intervals, and individual times-at-risk are imputed as the disease-free periods between sexual debut and either as uniformly distributed random dates between dates of sexual debut and diagnosis or as the midpoints between those dates.
Oz_incidencer(
DF,
x = NULL,
left = NULL,
right = NULL,
surveyDate = NULL,
debutDate = NULL,
sweight = NULL,
imputer = "random",
reps = 1001L,
ci.type = "bca",
conf = 0.95,
...
)
DF |
A dataframe containing the disease indicator and an estimate of time at risk. |
x |
Character-valued name of the binary (0 = negative, 1 = positive) infection status indicator. |
left |
Character-valued name of the (class = |
right |
Character-valued name of the (class = |
surveyDate |
Character-valued name of the (class = |
debutDate |
Character-valued name of the (class = |
sweight |
(Optional) Numeric survey sampling weights. |
imputer |
Character; either |
reps |
Integer number of bootstrap replicates. |
ci.type |
Bootstrap confidence interval type; any subset of
|
conf |
Numeric confidence level for bootstrap intervals. |
... |
Additional arguments passed to |
A list containing:
boot.res
An object of class boot
including the incidence
rate estimate.
boot.ci
An object of class bootci
containng the
bootstrap confidence intervals.
Call
The function call.
Steve Gutreuter
Osmond DH, Page K, Wiley J, Garrett K, Sheppard HW, Moss AR, Schrager L, Winkelstein W. HIV infection in homosexual and bisexual men 18 to 29 years of age: The San Francisco Young Men's Health Study. American Journal of Public Health 1994;84(12):1933-1937.
Davison AC, Hinkley DV. Bootstrap Methods and Their Application, Chapter 5. Cambridge University Press; 1997.
boot
boot.ci
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.