transfit: Nonparametric estimators for infectious disease transmission

Description Usage Arguments Author(s) References

View source: R/nonparametric.R

Description

Calculates Nelson-Aalen or Kaplan-Meier curves for infectious disease transmission using right-censored and/or left truncated data on contact intervals in ordered pairs of individuals and infectious contacts from external sources with individuals.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
transfit(
  formula,
  sus,
  data,
  subset = NULL,
  weights,
  na.action,
  inithaz = NULL,
  maxit = 50
)

Arguments

formula

A formula of the form "response ~ terms". The response must be an object returned by Surv. The terms are converted into a factor with a level corresponding to each unique combination of covariate values.

sus

A string giving the name of the variable indicating the susceptible member of each pair.

data

A data frame containing the variables named in formula.

subset

An expression indicating which rows of data should be included in the model fit. Default is to keep all rows.

na.action

A missing-data filter applied to data after subset. Defaults to options()$na.action.

inithaz

A named hazard function (up to a constant of proportionality) #' to be used in the first iteration. The formal arguments in the function need to match variable names data that appear in formula.

maxit

The maximum number of EM algorithm iterations.

Author(s)

Eben Kenah kenah.1@osu.edu

References

E Kenah (2013). Nonparametric survival analysis of infectious disease data. Journal of the Royal Statistical Society, Series B 75(2): 277-303.


ekenah/transtat documentation built on Nov. 11, 2021, 3:12 p.m.