calc_censor_likelihood: Calculates the interval censored likelihood when there is...

Description Usage Arguments Value

Description

For interval censoring with left censor time Tl and right censor time Tr, this returns S(Tl) - S(Tr).

Usage

1
2
calc_censor_likelihood(exposure_series, exposure_times, censor_start,
  censor_end, hazard_risk, clr, loglik = T)

Arguments

exposure_series

The vector of repeated pathogen exposure values, should be pre-processed

exposure_times

The times of exposures

censor_start

Start of the censor period (exposure up to this time are survived)

censor_end

End of the censor period (infection occured in exposures between censor_start and censor_end)

hazard_risk

The per time risk of exposure during persistence

clr

The clearance rate of exposure

loglik

Whether to return log (default TRUE)

Value

Returns a survival likelihood for interval censored outcome (see calc_risk_mult for calculations)


bryanmayer/multdr documentation built on May 13, 2019, 8:11 a.m.