diagnosis_survival: Survival probability for RITA Screening

View source: R/screen-survival.R

diagnosis_survivalR Documentation

Survival probability for RITA Screening

Description

Survival probability for RITA Screening

Usage

diagnosis_survival(
  undiagnosed,
  tslt,
  ever_hiv_test,
  hiv,
  weights,
  n = 365 * 5,
  population = c("undiagnosed", "negative")
)

Arguments

undiagnosed

A logical vector indicating if an individual has never been diagnosed as HIV+.

tslt

Time since last test in days

ever_hiv_test

A logical vector indicating whether an individual has ever had an HIV test

hiv

HIV positive status.

weights

Survey weights

n

Number of days to calculate

population

If undiagnosed, the testing histories of undiagnosed HIV+ people are used. If negative, the HIV- population is used.

Value

A vector where the ith element is the probability that an individual infected i days ago has not been diagnosed.

Examples

  data("assay_data")
  diagnosis_survival(
    assay_data$undiagnosed,
    assay_data$tslt,
    assay_data$ever_hiv_test,
    assay_data$hiv,
    assay_data$weights,
    n=40)

fellstat/recent documentation built on April 12, 2022, 3:10 p.m.