ss_fd {SIMICO} | R Documentation |
d/d_sigma^2
Description
Calculates the first derivative term with respect to sigma^2.
Usage
ss_fd(l, phen, HL_array, HR_array, tpos_all, obs_all,
apply_diffs, temp_beta, A_i, no_l_all, k, d)
Arguments
l |
Index of first outcome of interest. |
phen |
List containing all the left and right design matrices. |
HL_array |
n x k matrix containing all the hazard values for the left times. |
HR_array |
n x k matrix containing all the hazard values for the right times. |
tpos_all |
n x k matrix containing a indictor for whether that time is left-censored or not. |
obs_all |
n x k matrix containing a indictor for whether that time is right-censored or not. |
apply_diffs |
Matrix containing the differences between survival functions of the left and right time intervals. |
temp_beta |
vector of fitted coefficients. |
A_i |
Product of apply_diffs across all outcomes k summed over all quadrature nodes d. |
no_l_all |
n x (k - 1) matrix containing the product of apply_diffs across all outcomes k excluding the current outcome l. |
k |
Total number of outcomes. |
d |
Number of quadrature nodes. |
Value
The output is a single value for the first derivative with respect to sigma.