Learn R Programming

polle (version 1.6.2)

fit_c_functions: Fit Censoring Functions

Description

Fits right-censoring models for each stage or a single model across all stages.

Usage

fit_c_functions(policy_data, c_models, full_history = FALSE)

Value

List of fitted censoring functions with class "c_functions"

Arguments

policy_data

Policy data object created by policy_data()

c_models

Single c_model or list of K+1 c_models

full_history

Logical; use full history (TRUE) or Markov-type history (FALSE)

Details

The function handles two scenarios:

  • Multiple models: One model per stage (length K+1)

  • Single model: Same model applied across all stages