
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). Each subject is either exact
(y[i] finite, y_L[i] and y_R[i] NA) or censored
(y[i] NA, y_L[i] finite, y_R[i] finite or Inf).
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].