seroconversion_inverse_survival_function: Inverse survival function for time-to-event variable with...

View source: R/seroconversion_inverse_survival_function.R

seroconversion_inverse_survival_functionR Documentation

Inverse survival function for time-to-event variable with linear hazard function

Description

This function determines the seroconversion date corresponding to a provided probability of survival. See \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/biom.13472")}, Supporting Information, Section A.4.

Usage

seroconversion_inverse_survival_function(u, e, hazard_alpha, hazard_beta)

Arguments

u

a vector of seroconversion survival probabilities

e

a vector of time differences between study start and enrollment (in years)

hazard_alpha

the instantaneous hazard of seroconversion on the study start date

hazard_beta

the change in hazard per year after study start date

Value

numeric vector of time differences between study start and seroconversion (in years)

References

Morrison, Laeyendecker, and Brookmeyer (2021). "Regression with interval-censored covariates: Application to cross-sectional incidence estimation". Biometrics, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/biom.13472")}.


d-morrison/rwicc documentation built on Feb. 8, 2024, 5:02 a.m.