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

Go to the source code of this file.

Functions

real dist_lcdf (real delay, array[] real params, int dist_id)
 
real primary_lpdf (real x, int primary_id, array[] real params, real min, real max)
 
vector primarycensored_ode (real t, vector y, array[] real theta, array[] real x_r, array[] int x_i)
 

Function Documentation

◆ dist_lcdf()

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

Compute the log CDF of the delay distribution

Parameters
delayTime delay
paramsDistribution parameters
dist_idDistribution identifier 1: Lognormal, 2: Gamma, 3: Normal, 4: Exponential, 5: Weibull, 6: Beta, 7: Cauchy, 8: Chi-square, 9: Inverse Chi-square, 10: Double Exponential, 11: Inverse Gamma, 12: Logistic, 13: Pareto, 14: Scaled Inverse Chi-square, 15: Student's t, 16: Uniform, 17: von Mises
Returns
Log CDF of the delay distribution
// Example: Lognormal distribution
real delay = 5.0;
array[2] real params = {0.0, 1.0}; // mean and standard deviation on log scale
int dist_id = 1; // Lognormal
real log_cdf = dist_lcdf(delay, params, dist_id);
real dist_lcdf(real delay, array[] real params, int dist_id)

Definition at line 23 of file primarycensored_ode.stan.

◆ primary_lpdf()

real primary_lpdf ( real x,
int primary_id,
array[]real params,
real min,
real max )

Compute the log PDF of the primary distribution

Parameters
xValue
primary_idPrimary distribution identifier
paramsDistribution parameters
minMinimum value
maxMaximum value
Returns
Log PDF of the primary distribution
// Example: Uniform distribution
real x = 0.5;
int primary_id = 1; // Uniform
array[0] real params = {}; // No additional parameters for uniform
real min = 0;
real max = 1;
real log_pdf = primary_lpdf(x, primary_id, params, min, max);
real primary_lpdf(real x, int primary_id, array[] real params, real min, real max)

Definition at line 68 of file primarycensored_ode.stan.

◆ primarycensored_ode()

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

ODE system for the primary censored distribution

Parameters
tTime
yState variables
thetaParameters
x_rReal data
x_iInteger data
Returns
Derivatives of the state variables

Definition at line 87 of file primarycensored_ode.stan.