
Create an epidist_linelist_data object from vectors of event times
Source:R/linelist_data.R
as_epidist_linelist_data.default.Rd
This method takes vectors of event times (primary/secondary event times and
observation time) and creates an epidist_linelist_data
object. This format
is useful when working with individual-level data where each row represents a
single observation. See the other methods for other data input options.
Usage
# Default S3 method
as_epidist_linelist_data(
data,
ptime_upr = NULL,
stime_lwr = NULL,
stime_upr = NULL,
obs_time = NULL,
...
)
Arguments
- data
Numeric vector giving lower bounds for primary times.
- ptime_upr
Numeric vector giving upper bounds for primary times.
- stime_lwr, stime_upr
Numeric vectors giving lower and upper bounds for secondary times.
- obs_time
Numeric vector giving observation times.
- ...
Additional columns to add to the epidist_linelist_data object.