fit_c_functions: Fit Censoring Functions

View source: R/c_function.R

fit_c_functionsR Documentation

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)

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

Value

List of fitted censoring functions with class "c_functions"


polle documentation built on Dec. 1, 2025, 5:08 p.m.