Gradient Vector for Truncated Normal Distribution with Censoring with Linear Equation Mean
tcensReg_gradient(theta, y, X, a = -Inf, v = NULL)
Numeric vector containing estimates of \(\beta\) and \(\log(\sigma)\)
Numeric vector with the observed truncated and censored outcomes
Numeric design matrix
Numeric scalar indicating the truncation value. Initial value is -Inf indicating no truncation
Numeric scalar indicating the censoring value. Initially set to NULL indicating no censoring
Vector of gradient values with p-1 beta parameters and log sigma for the nth iterate