![]() |
primarycensored
|
Functions for computing primary censored distributions for multiple integer delays. More...

Functions | |
| vector | primarycensored_lcdf_vectorized (data int start, data int n, data int dist_id, array[] real params, data real pwindow, data int primary_id, array[] real primary_params) |
| vector | primarycensored_sone_lpmf_vectorized (data int max_delay, data real L, data real D, data int dist_id, array[] real params, data real pwindow, data int primary_id, array[] real primary_params) |
| vector | primarycensored_sone_pmf_vectorized (data int max_delay, data real L, data real D, data int dist_id, array[] real params, data real pwindow, data int primary_id, array[] real primary_params) |
Functions for computing primary censored distributions for multiple integer delays.
| vector primarycensored_lcdf_vectorized | ( | data int | start, |
| data int | n, | ||
| data int | dist_id, | ||
| array[]real | params, | ||
| data real | pwindow, | ||
| data int | primary_id, | ||
| array[]real | primary_params ) |
Compute the primary event censored log CDF at integer delays
Uses primarycensored_analytical_lcdf_vectorized() when check_for_analytical_vectorized() is 1, and otherwise calls primarycensored_lcdf() at each delay. No truncation is applied.
| start | First delay to compute |
| n | Last delay to compute, and the length of the result |
| dist_id | Distribution identifier |
| params | Array of distribution parameters |
| pwindow | Primary event window |
| primary_id | Primary distribution identifier |
| primary_params | Primary distribution parameters |
Definition at line 424 of file primarycensored.stan.


| vector primarycensored_sone_lpmf_vectorized | ( | data int | max_delay, |
| data real | L, | ||
| data real | D, | ||
| data int | dist_id, | ||
| array[]real | params, | ||
| data real | pwindow, | ||
| data int | primary_id, | ||
| array[]real | primary_params ) |
Compute the primary event censored log PMF for integer delays up to max_delay
| max_delay | Maximum delay to compute PMF for |
| L | Minimum delay (lower truncation point) |
| D | Maximum delay (upper truncation point), must be at least max_delay + 1 |
| dist_id | Distribution identifier |
| params | Array of distribution parameters |
| pwindow | Primary event window |
| primary_id | Primary distribution identifier |
| primary_params | Primary distribution parameters |
This function differs from primarycensored_lpmf in that it:
The log CDFs at the integer delays come from primarycensored_lcdf_vectorized(), which uses the analytical solution where check_for_analytical_vectorized() allows it.
Definition at line 492 of file primarycensored.stan.


| vector primarycensored_sone_pmf_vectorized | ( | data int | max_delay, |
| data real | L, | ||
| data real | D, | ||
| data int | dist_id, | ||
| array[]real | params, | ||
| data real | pwindow, | ||
| data int | primary_id, | ||
| array[]real | primary_params ) |
Compute the primary event censored PMF for integer delays up to max_delay
| max_delay | Maximum delay to compute PMF for |
| L | Minimum delay (lower truncation point) |
| D | Maximum delay (upper truncation point), must be at least max_delay + 1 |
| dist_id | Distribution identifier |
| params | Array of distribution parameters |
| pwindow | Primary event window |
| primary_id | Primary distribution identifier |
| primary_params | Primary distribution parameters |
This function differs from primarycensored_pmf in that it:
Definition at line 620 of file primarycensored.stan.
