47 array[,]
int rdlurd, vector srdlh,
48 matrix refp_lh, array[]
int dpmfs,
int ref_p,
49 int rep_h,
int ref_as_p,
int g,
int t,
int l,
50 vector refnp_lh,
int ref_np,
int p) {
52 vector[l] log_exp_obs;
53 profile(
"model_likelihood_hazard_allocations") {
55 i, rdlurd, srdlh, refp_lh, dpmfs, ref_p, rep_h, g, t, l, refnp_lh, ref_np,
61 profile(
"model_likelihood_expected_obs") {
63 matrix[1, 1] agg_indicator;
64 agg_indicator[1, 1] = 0;
65 log_exp_obs =
expected_obs(imp_obs[g][t], lh, l, ref_as_p, agg_probs, agg_indicator);
118 array[,]
int rdlurd, vector srdlh,
119 matrix refp_lh, array[]
int dpmfs,
120 int ref_p,
int rep_h,
int ref_as_p,
121 array[]
int sl, array[]
int csl,
122 array[]
int sg, array[]
int st,
int n,
123 vector refnp_lh,
int ref_np, array[]
int sdmax,
124 array[]
int csdmax) {
125 vector[n] log_exp_obs;
133 for (i in start:end) {
134 profile(
"allocations") {
138 p = csdmax[i] - sdmax[i] + 1;
141 profile(
"expected_obs_from_index") {
145 i, imp_obs, rdlurd, srdlh, refp_lh, dpmfs, ref_p, rep_h, ref_as_p, g, t,
146 l, refnp_lh, ref_np, 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)
vector expected_obs(real tar_obs, vector lh, int l, int ref_as_p, int agg_probs, matrix agg_indicator)
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)