Skip to contents

Data specific to end type for Stan input.

Usage

prep_latent_data(
  input_data,
  formula_cure,
  formula_latent,
  event_type,
  centre_coefs = FALSE,
  suffix = TRUE
)

Arguments

formula_cure

parsed formula

formula_latent

parsed formula

event_type

cluster/group

centre_coefs

Logical 1: Exponential distribution; 2: fixed point values from life-table

Value

List consisting of: sample size, times, censoring indicator, number of covariates, covariates