gemlib.mcmc.discrete_time_state_transition_model.left_censored_events_mh

gemlib.mcmc.discrete_time_state_transition_model.left_censored_events_mh#

gemlib.mcmc.discrete_time_state_transition_model.left_censored_events_mh(incidence_matrix, transition_index, max_timepoint, max_events, events_varname, initial_conditions_varname, name=None)#

Update initial conditions and events for DiscreteTimeStateTransitionModel

In observations of a DiscreteTimeStateTransitionModel realisation, there may be uncertainty about the initial conditions and hence the number of events occurring in the early part of the timeseries. This MCMC kernel provides a means of updating these left-censored events.

Parameters:
  • incidence_matrix (the state-transition graph incidence matrix)

  • transition_index (the index of the transition in incidence_matrix to) – update

  • max_timepoint (max timepoint up to which to propose moves)

  • max_events (max number of events per unit/timepoint to move)

  • events_varname (the name of the random variable holding the events) – timeseries in a NamedTuple supplied to both the init and step functions.

  • initial_conditions_varname (the name of the random variable representing the) – initial conditions in a NamedTuple supplied to both the init and step functions.

  • name (name of the kernel.)

Return type:

A instance of SamplingAlgorithm