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

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)
 

Function Documentation

◆ combine_logit_hazards()

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.

Parameters
iIndex for accessing elements in dpmfs.
rdlurdArray indicating reporting dates lookup reference data.
srdlhVector of standardized reporting date log hazards.
refp_lhMatrix of reference date logit hazards.
dpmfsArray of indices for accessing reference date effects in refp_lh.
ref_pFlag indicating if reference date effects are present (1) or not (0).
rep_hFlag indicating if reporting date hazards are to be used (1) or not (0).
gGroup index for accessing elements in rdlurd.
tTime index for accessing elements in rdlurd.
lLength of the period for which hazards are calculated.
refnp_lhVector of non-parametric reference log hazards.
refnp_pFlag indicating if non-parametric reference effects are present (1) or not (0).
pStart index for segmenting refnp_lh.
Returns
A vector of combined logit hazards for the specified time period.

Definition at line 41 of file combine_logit_hazards.stan.