Survint: Survival object allowing for data that is both...

Description Usage Arguments Value

Description

Survival object allowing for data that is both interval-censored *and* truncated

Usage

1
Survint(end, event, start = NULL, end_lb = NULL)

Arguments

end

Last observed time.

event

Event indicator. When 'event==0', 'end_lb' is ignored, and 'end' is considered right-censored. When 'event==1' and 'end > end_lb', the event is considered interval-censored (occurring sometime between these two times); when 'event==1' and 'end == end_lb', the 'end' is considered an exact time of event.

start

Truncation time. If unspecified

end_lb

Optional. Lower bound of last-observed time. If included, then an 'event' indicator signals inteval-censoring (i.e., an event some time between 'end_lb' and 'end'). If some observations are interval-censored, while for some the exact time is known, the latter can be indicated by rows where 'end == end_lb'. If the 'end_lb' argument is omitted entirely, then 'end == end_lb' is assumed for all data.

Value

An object of class 'Survint', which can be used as the response-object in survreg_stan or survreg_map.


jwdink/survbayes documentation built on May 4, 2019, 4:23 p.m.