epinowcast
Loading...
Searching...
No Matches
apply_missing_reference_effects.stan File Reference

Go to the source code of this file.

Functions

vector apply_missing_reference_effects (int start, int end, vector obs, array[] int sl, array[] int csl, vector miss_ref_lprop)
 

Function Documentation

◆ apply_missing_reference_effects()

vector apply_missing_reference_effects ( int  start,
int  end,
vector  obs,
array[]int  sl,
array[]int  csl,
vector  miss_ref_lprop 
)

Apply missing reference effects to observations

This function adjusts observed data for missing reference effects over a specified time range. It applies a correction based on missing reference log probabilities for each period in the time range.

Parameters
startThe start index for the application range.
endThe end index for the application range.
obsA vector of observations to be adjusted.
slArray of start index for each observation period.
cslArray of cumulative start indices.
miss_ref_lpropVector of missing reference log probabilities, applied to each period.
Returns
A vector of adjusted observations, with missing reference effects applied.
Note
Dependencies:
  • filt_obs_indexes

Definition at line 28 of file apply_missing_reference_effects.stan.