Analytic Gradient Vector for J Independent Truncated Normal Random Variables with Separate Variance
tcensReg_gradient_sepvar(theta, y, X, group, a = -Inf, v = NULL)
Numeric vector numeric vector containing estimates of beta and log sigma
Numeric vector with the observed truncated and censored outcomes
Numeric design matrix
Character vector identifying the group membership for the independent truncated normal variables. This defines the J
groups.
Numeric scalar indicating the truncation value
Numeric scalar indicating the censoring value
Vector of gradient values with p-1 beta parameters and log sigma for the nth iterate