Skip to contents

Returns a log-likelihood function for a Weibull series system with respect to parameter vector (shape_1, scale_1, ..., shape_m, scale_m) for masked data with candidate sets that satisfy conditions C1, C2, and C3.

Usage

# S3 method for class 'wei_series_md_c1_c2_c3'
loglik(model, ...)

Arguments

model

the likelihood model object

...

additional arguments (passed to returned function)

Value

log-likelihood function that takes the following arguments:

  • df: masked data frame

  • par: parameter vector (shape1, scale1, shape2, scale2, ...)

  • lifetime: system lifetime column name (default from model)

  • lifetime_upper: interval upper bound column name (default from model)

  • omega: observation type column name (default from model)

  • candset: prefix of Boolean matrix encoding candidate sets

Details

Supports four observation types. Left-censored and interval-censored observations require numerical integration (via stats::integrate) because heterogeneous shapes prevent a closed-form solution.