EpiNow2 Stan Functions
primarycensored.stan File Reference

Functions in this File

real expgrowth_lpdf (real x, real xmin, real xmax, real r)
 
int check_for_analytical (int dist_id, int primary_id)
 
real primarycensored_gamma_uniform_lcdf (data real d, real q, array[] real params, data real pwindow)
 
real primarycensored_lognormal_uniform_lcdf (data real d, real q, array[] real params, data real pwindow)
 
real log_weibull_g (real t, real shape, real scale)
 
real primarycensored_weibull_uniform_lcdf (data real d, real q, array[] real params, data real pwindow)
 
real primarycensored_analytical_lcdf_raw (data real d, int dist_id, array[] real params, data real pwindow, int primary_id)
 
real primarycensored_analytical_lcdf (data real d, int dist_id, array[] real params, data real pwindow, data real L, data real D, int primary_id, array[] real primary_params)
 
real primarycensored_analytical_cdf (data real d, int dist_id, array[] real params, data real pwindow, data real L, data real D, int primary_id, array[] real primary_params)
 
real dist_lcdf (real delay, array[] real params, int dist_id)
 
real primary_lpdf (real x, int primary_id, array[] real params, real xmin, real xmax)
 
vector primarycensored_ode (real t, vector y, array[] real theta, array[] real x_r, array[] int x_i)
 
real primarycensored_log_normalizer (real log_cdf_D, real log_cdf_L, real L)
 
real primarycensored_apply_truncation (real log_cdf, real log_cdf_L, real log_normalizer, real L)
 
vector primarycensored_truncation_bounds (data real L, data real D, int dist_id, array[] real params, data real pwindow, int primary_id, array[] real primary_params)
 
real primarycensored_cdf (data real d, int dist_id, array[] real params, data real pwindow, data real L, data real D, int primary_id, array[] real primary_params)
 
real primarycensored_lcdf (data real d, int dist_id, array[] real params, data real pwindow, data real L, data real D, int primary_id, array[] real primary_params)
 
real primarycensored_lpmf (data int d, int dist_id, array[] real params, data real pwindow, data real d_upper, data real L, data real D, int primary_id, array[] real primary_params)
 
vector primarycensored_sone_lpmf_vectorized (int max_delay, data real L, data real D, int dist_id, array[] real params, data real pwindow, int primary_id, array[] real primary_params)
 
vector primarycensored_sone_pmf_vectorized (int max_delay, data real L, data real D, int dist_id, array[] real params, data real pwindow, int primary_id, array[] real primary_params)
 

Function Documentation

◆ check_for_analytical()

int check_for_analytical ( int dist_id,
int primary_id )

Definition at line 12 of file primarycensored.stan.

Referenced by primarycensored_cdf(), and primarycensored_lcdf().

Here is the caller graph for this function:

◆ dist_lcdf()

real dist_lcdf ( real delay,
array[]real params,
int dist_id )

Definition at line 201 of file primarycensored.stan.

Referenced by primarycensored_ode().

Here is the caller graph for this function:

◆ expgrowth_lpdf()

real expgrowth_lpdf ( real x,
real xmin,
real xmax,
real r )

Definition at line 2 of file primarycensored.stan.

Referenced by primary_lpdf().

Here is the caller graph for this function:

◆ log_weibull_g()

real log_weibull_g ( real t,
real shape,
real scale )

Definition at line 106 of file primarycensored.stan.

Referenced by primarycensored_weibull_uniform_lcdf().

Here is the caller graph for this function:

◆ primary_lpdf()

real primary_lpdf ( real x,
int primary_id,
array[]real params,
real xmin,
real xmax )

Definition at line 225 of file primarycensored.stan.

References expgrowth_lpdf().

Referenced by primarycensored_ode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ primarycensored_analytical_cdf()

real primarycensored_analytical_cdf ( data real d,
int dist_id,
array[]real params,
data real pwindow,
data real L,
data real D,
int primary_id,
array[]real primary_params )

Definition at line 194 of file primarycensored.stan.

References primarycensored_analytical_lcdf().

Referenced by primarycensored_cdf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ primarycensored_analytical_lcdf()

real primarycensored_analytical_lcdf ( data real d,
int dist_id,
array[]real params,
data real pwindow,
data real L,
data real D,
int primary_id,
array[]real primary_params )

Definition at line 168 of file primarycensored.stan.

References primarycensored_analytical_lcdf_raw(), primarycensored_apply_truncation(), primarycensored_log_normalizer(), and primarycensored_truncation_bounds().

Referenced by primarycensored_analytical_cdf(), and primarycensored_lcdf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ primarycensored_analytical_lcdf_raw()

real primarycensored_analytical_lcdf_raw ( data real d,
int dist_id,
array[]real params,
data real pwindow,
int primary_id )

Definition at line 153 of file primarycensored.stan.

References primarycensored_gamma_uniform_lcdf(), primarycensored_lognormal_uniform_lcdf(), and primarycensored_weibull_uniform_lcdf().

Referenced by primarycensored_analytical_lcdf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ primarycensored_apply_truncation()

real primarycensored_apply_truncation ( real log_cdf,
real log_cdf_L,
real log_normalizer,
real L )

Definition at line 264 of file primarycensored.stan.

Referenced by primarycensored_analytical_lcdf(), primarycensored_cdf(), and primarycensored_lcdf().

Here is the caller graph for this function:

◆ primarycensored_cdf()

real primarycensored_cdf ( data real d,
int dist_id,
array[]real params,
data real pwindow,
data real L,
data real D,
int primary_id,
array[]real primary_params )

Definition at line 301 of file primarycensored.stan.

References check_for_analytical(), primarycensored_analytical_cdf(), primarycensored_apply_truncation(), primarycensored_log_normalizer(), primarycensored_ode(), and primarycensored_truncation_bounds().

Referenced by primarycensored_lcdf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ primarycensored_gamma_uniform_lcdf()

real primarycensored_gamma_uniform_lcdf ( data real d,
real q,
array[]real params,
data real pwindow )

Definition at line 18 of file primarycensored.stan.

Referenced by primarycensored_analytical_lcdf_raw().

Here is the caller graph for this function:

◆ primarycensored_lcdf()

real primarycensored_lcdf ( data real d,
int dist_id,
array[]real params,
data real pwindow,
data real L,
data real D,
int primary_id,
array[]real primary_params )

◆ primarycensored_log_normalizer()

real primarycensored_log_normalizer ( real log_cdf_D,
real log_cdf_L,
real L )

◆ primarycensored_lognormal_uniform_lcdf()

real primarycensored_lognormal_uniform_lcdf ( data real d,
real q,
array[]real params,
data real pwindow )

Definition at line 61 of file primarycensored.stan.

Referenced by primarycensored_analytical_lcdf_raw().

Here is the caller graph for this function:

◆ primarycensored_lpmf()

real primarycensored_lpmf ( data int d,
int dist_id,
array[]real params,
data real pwindow,
data real d_upper,
data real L,
data real D,
int primary_id,
array[]real primary_params )

Definition at line 390 of file primarycensored.stan.

References primarycensored_lcdf(), and primarycensored_log_normalizer().

Here is the call graph for this function:

◆ primarycensored_ode()

vector primarycensored_ode ( real t,
vector y,
array[]real theta,
array[]real x_r,
array[]int x_i )

Definition at line 232 of file primarycensored.stan.

References dist_lcdf(), and primary_lpdf().

Referenced by primarycensored_cdf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ primarycensored_sone_lpmf_vectorized()

vector primarycensored_sone_lpmf_vectorized ( int max_delay,
data real L,
data real D,
int dist_id,
array[]real params,
data real pwindow,
int primary_id,
array[]real primary_params )

Definition at line 450 of file primarycensored.stan.

References primarycensored_lcdf(), and primarycensored_log_normalizer().

Referenced by primarycensored_sone_pmf_vectorized().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ primarycensored_sone_pmf_vectorized()

vector primarycensored_sone_pmf_vectorized ( int max_delay,
data real L,
data real D,
int dist_id,
array[]real params,
data real pwindow,
int primary_id,
array[]real primary_params )

Definition at line 528 of file primarycensored.stan.

References primarycensored_sone_lpmf_vectorized().

Referenced by discretised_pmf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ primarycensored_truncation_bounds()

vector primarycensored_truncation_bounds ( data real L,
data real D,
int dist_id,
array[]real params,
data real pwindow,
int primary_id,
array[]real primary_params )

Definition at line 272 of file primarycensored.stan.

References primarycensored_lcdf().

Referenced by primarycensored_analytical_lcdf(), primarycensored_cdf(), and primarycensored_lcdf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ primarycensored_weibull_uniform_lcdf()

real primarycensored_weibull_uniform_lcdf ( data real d,
real q,
array[]real params,
data real pwindow )

Definition at line 111 of file primarycensored.stan.

References log_weibull_g().

Referenced by primarycensored_analytical_lcdf_raw().

Here is the call graph for this function:
Here is the caller graph for this function: