![]() |
primarycensored
|
Helper function to compute the log CDF for the delay distribution. More...

Functions | |
| int | dist_has_positive_support (data int dist_id) |
Helper function to compute the log CDF for the delay distribution.
| int dist_has_positive_support | ( | data int | dist_id | ) |
Compute the log CDF of the delay distribution
| delay | Time delay |
| params | Distribution parameters |
| dist_id | Distribution identifier matching pcd_distributions in R: 1: Lognormal, 2: Gamma, 3: Weibull, 4: Exponential, 9: Beta, 12: Cauchy, 13: Chi-square, 15: Gumbel, 16: Inverse Gamma, 17: Logistic, 18: Normal, 19: Inverse Chi-square, 20: Double Exponential, 21: Pareto, 22: Scaled Inverse Chi-square, 23: Student's t, 24: Uniform, 25: von Mises |
Test whether a delay distribution has support only on the non-negative reals
Used internally to decide whether to short-circuit dist_lcdf at delay <= 0 and whether the ODE / nested CDF calls need to integrate over negative arguments. Returns 1 for distributions with strictly non-negative support, 0 otherwise. IDs match pcd_distributions$stan_id in R.
| dist_id | Distribution identifier |
Definition at line 38 of file primarycensored_ode.stan.
