primarycensored
Loading...
Searching...
No Matches

Helper functions for analytical solutions. More...

Collaboration diagram for Helpers for Analytical Solutions:

Functions

int check_for_analytical (int dist_id, int primary_id)
 
real log_weibull_g (real t, real shape, real scale)
 

Description

Helper functions for analytical solutions.

Function Documentation

◆ check_for_analytical()

int check_for_analytical ( int dist_id,
int primary_id )

Check if an analytical solution exists for the given distribution combination

Parameters
dist_idDistribution identifier for the delay distribution
primary_idDistribution identifier for the primary distribution
Returns
1 if an analytical solution exists, 0 otherwise

Definition at line 10 of file primarycensored_analytical_cdf.stan.

Here is the caller graph for this function:

◆ log_weibull_g()

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

Compute the log of the lower incomplete gamma function

This function is used in the analytical solution for the primary censored Weibull distribution with uniform primary censoring. It corresponds to the g(t; λ, k) function described in the analytic solutions document.

Parameters
tUpper bound of integration
shapeShape parameter (k) of the Weibull distribution
scaleScale parameter (λ) of the Weibull distribution
Returns
Log of g(t; λ, k) = γ(1 + 1/k, (t/λ)^k)

Definition at line 145 of file primarycensored_analytical_cdf.stan.

Here is the caller graph for this function: