check_exposures_times

check_exposures_times(
  data_sero,
  known_exp,
  exposure_types,
  fitted_exp,
  exposurePriorTime = NULL,
  exposurePriorTimeType = NULL
)

Arguments

data_sero

A data.frame with columns id, time and biomarkers

known_exp

A data.frame with columns id, time and exposure_type

exposure_types

A vector of the exposure types

fitted_exp

A string of the exposure type that is fitted

exposurePriorTime

A data.frame describing either a functional or empirical prior

exposurePriorTimeType

define a type of exposure prior, func for functional and 'empirical' for empirical. If blank it will assume a uniform distribution between 1 and T.

Value

A warning if there are values outside this range

Details

This function checks that the data_sero has exposure times within the range the bleeds taken for an individual

Note

This function can be used to check the data_sero before running the serojump model.