fd_term | R Documentation |
Calculate the first derivative of the theta terms for outcome l.
fd_term(l, temp_beta, phen,d, apply_diffs, A_i, no_l_all,HL_array, HR_array)
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. |
The output is a 1 x (p + 2) vector of the first derivative terms for outcome l.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.