Calculates the difference between the survival functions of the left and right time intervals for outcome k for quadrature node d.
surv_diff(l, d, temp_beta, phen, r1, k)The output is a vector of the difference of the survival values of the left times and right times.
Outcome of interest.
Total number of Gaussian quadrature nodes.
Vector of fitted coefficients.
List of data matrices containing both left and right information.
Gaussian quadrature nodes.
Total number of outcomes.