
Compute Weibull Regression Score (General Censoring)
Source:R/RcppExports.R
get_weibull_regression_general_score_cpp.RdScore vector for the Weibull AFT log-likelihood extended to
left-, right-, and interval-censored responses (see TODO-3 in
interval_censored_survival_response.md). Exactly one of y[i] or
(y_L[i], y_R[i]) must be finite per subject: NA in
the unused slot(s).
Arguments
- X
A numeric matrix of predictors.
- y
Exact survival times,
NAfor censored subjects.- y_L
Censored-interval lower bounds,
NAfor exact subjects;0for left-censored.- y_R
Censored-interval upper bounds,
NAfor exact subjects;Inffor right-censored.- params
A numeric vector of parameters [beta, log_sigma].