cs2ic: Convert current status data into interval censored format

Description Usage Arguments Details Examples

View source: R/user_utilities.R

Description

Convert current status data into interval censored format

Usage

1
cs2ic(time, eventOccurred)

Arguments

time

Time of inspection

eventOccurred

Indicator if event has occurred. 0/FALSE implies event has not occurred by inspection time.

Details

Converts current status data to the interval censored format for usage in icenReg.

Examples

1
2
3
4
5
6
7
8
simData <- simCS_weib()
# Simulate current status data

head(cs2ic(simData$time, simData$event))
# Converting data to current status format

fit <- ic_par(cs2ic(time, event) ~ x1 + x2, data = simData)
# Can be used directly in formula

icenReg documentation built on Oct. 16, 2018, 1:04 a.m.