epinowcast
|
Go to the source code of this file.
Functions | |
vector | expected_obs_from_index (int i, array[] vector imp_obs, array[,] int rdlurd, vector srdlh, matrix refp_lh, array[] int dpmfs, int ref_p, int rep_h, int ref_as_p, int g, int t, int l, vector refnp_lh, int ref_np, int p) |
vector | expected_obs_from_snaps (int start, int end, array[] vector imp_obs, array[,] int rdlurd, vector srdlh, matrix refp_lh, array[] int dpmfs, int ref_p, int rep_h, int ref_as_p, array[] int sl, array[] int csl, array[] int sg, array[] int st, int n, vector refnp_lh, int ref_np, array[] int sdmax, array[] int csdmax) |
vector expected_obs_from_index | ( | int | i, |
array[]vector | imp_obs, | ||
array int | rdlurd[,], | ||
vector | srdlh, | ||
matrix | refp_lh, | ||
array[]int | dpmfs, | ||
int | ref_p, | ||
int | rep_h, | ||
int | ref_as_p, | ||
int | g, | ||
int | t, | ||
int | l, | ||
vector | refnp_lh, | ||
int | ref_np, | ||
int | p | ||
) |
Calculate expected observations for a given index
Computes the expected observations for a specific time index by combining final observed/imputed expected observation with time effects. This function integrates various hazard effects and reference adjustments to produce the expected observations.
i | Index for accessing elements in various arrays. |
imp_obs | Array of imputed observed data, organized by group and time. |
rdlurd | Array indicating reporting dates lookup reference data. |
srdlh | Vector of standardized reporting date log hazards. |
refp_lh | Matrix of reference date logit hazards. |
dpmfs | Array of indices for accessing reference date effects in refp_lh . |
ref_p,rep_h,ref_as_p | Flags indicating presence of reference date, reporting hazards, and reference-as-probability. |
g,t,l,p | Group, time, length, and position parameters for data access and processing. |
refnp_lh | Vector of non-parametric reference log hazards. |
ref_np | Flag indicating presence of non-parametric reference effects. |
combine_logit_hazards
.expected_obs
.Dependencies:
combine_logit_hazards
expected_obs
Definition at line 46 of file expected_obs_from.stan.
vector expected_obs_from_snaps | ( | int | start, |
int | end, | ||
array[]vector | imp_obs, | ||
array int | rdlurd[,], | ||
vector | srdlh, | ||
matrix | refp_lh, | ||
array[]int | dpmfs, | ||
int | ref_p, | ||
int | rep_h, | ||
int | ref_as_p, | ||
array[]int | sl, | ||
array[]int | csl, | ||
array[]int | sg, | ||
array[]int | st, | ||
int | n, | ||
vector | refnp_lh, | ||
int | ref_np, | ||
array[]int | sdmax, | ||
array[]int | csdmax | ||
) |
Calculate expected observations for a set of indexes
Computes expected observations for a range of time indexes, effectively aggregating individual calculations over a specified range. This function considers various factors like hazard effects, reference adjustments, and grouping to produce expected observations for each index within the range.
start,end | Start and end indexes for the allocation range. |
imp_obs | Array of imputed observed data, organized by group and time. |
rdlurd | Array indicating reporting dates lookup reference data. |
srdlh | Vector of standardized reporting date log hazards. |
refp_lh | Matrix of reference date logit hazards. |
dpmfs,sl,csl,sg,st | Arrays for accessing various indices and supporting data. |
ref_p,rep_h,ref_as_p | Flags for presence of different hazard effects. |
n | Number of discrete points for observations. |
refnp_lh | Vector of non-parametric reference log hazards. |
ref_np | Flag for non-parametric reference effects. |
sdmax,csdmax | Arrays of maximum start dates and cumulative start dates. |
expected_obs_from_index
for each index to compute the expected observations.Dependencies:
expected_obs_from_index
Definition at line 117 of file expected_obs_from.stan.