fd_term {SIMICO} | R Documentation |
d/d_theta_l
Description
Calculate the first derivative of the theta terms for outcome l.
Usage
fd_term(l, temp_beta, phen,d, apply_diffs,
A_i, no_l_all,HL_array, HR_array)
Arguments
l |
Outcome of interest. |
temp_beta |
Vector of fitted coefficients. |
phen |
list containing the covariate design matrices. |
d |
Number of quadrature nodes. |
apply_diffs |
Matrix containing the differences between survival functions of the left and right time intervals. |
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. |
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. |
Value
The output is a 1 x (p + 2) vector of the first derivative terms for outcome l.
[Package SIMICO version 0.2.0 Index]