epinowcast
|
Go to the source code of this file.
Functions | |
vector | combine_logit_hazards (int i, array[,] int rdlurd, vector srdlh, matrix refp_lh, array[] int dpmfs, int ref_p, int rep_h, int g, int t, int l, vector refnp_lh, int refnp_p, int p) |
vector combine_logit_hazards | ( | int | i, |
array int | rdlurd[,], | ||
vector | srdlh, | ||
matrix | refp_lh, | ||
array[]int | dpmfs, | ||
int | ref_p, | ||
int | rep_h, | ||
int | g, | ||
int | t, | ||
int | l, | ||
vector | refnp_lh, | ||
int | refnp_p, | ||
int | p | ||
) |
Combine logit hazards from multiple sources
This function combines logit hazards from various sources for a given time period. It integrates parametric reference date effects, non-parametric reference effects, and reporting time effects into a single logit hazard vector.
i | Index for accessing elements in dpmfs . |
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 | Flag indicating if reference date effects are present (1) or not (0). |
rep_h | Flag indicating if reporting date hazards are to be used (1) or not (0). |
g | Group index for accessing elements in rdlurd . |
t | Time index for accessing elements in rdlurd . |
l | Length of the period for which hazards are calculated. |
refnp_lh | Vector of non-parametric reference log hazards. |
refnp_p | Flag indicating if non-parametric reference effects are present (1) or not (0). |
p | Start index for segmenting refnp_lh . |
Definition at line 41 of file combine_logit_hazards.stan.