Skip to contents

This function prepares data for use with the latent individual model. It does this by adding columns used in the model to the data object provided. To do this, the data must already have columns for the case number (integer), (positive, numeric) upper and lower bounds for the primary and secondary event times, as well as a (positive, numeric) time that observation takes place. The output of this function is a epidist_latent_individual class object, which may be passed to epidist() to perform inference for the model.

Usage

as_latent_individual(data)

# S3 method for class 'data.frame'
as_latent_individual(data)

Arguments

data

A data.frame containing line list data