Score function (gradient of log-likelihood) for exponential series system (C1,C2,C3)
Source:R/md_candidate_set_models.R
md_score_exp_series_C1_C2_C3.RdReturns the score function (gradient of log-likelihood with respect to theta) for an exponential series system with masked data under C1, C2, C3 conditions.
Arguments
- md
Masked data frame containing:
System lifetime column (default: "t")
Candidate set columns (default: "x1", "x2", ..., "xm")
Optional right-censoring indicator (default: "delta")
- sysvar
Column name for system lifetime. Default is "t".
- setvar
Column prefix for candidate set (Boolean matrix). Default is "x".
- deltavar
Column name for right-censoring indicator. Default is "delta". If NULL or column doesn't exist, assumes no censoring.
Value
A function g(theta) that computes the score (gradient) vector
at parameter values theta = (lambda_1, ..., lambda_m).