Learn R Programming

PSsurvival (version 0.2.0)

validate_method_arguments: Validate Method Arguments

Description

Validates weight_method, censor_method, trimming parameters, time_points, and control lists. Synthesizes all method-specific checks.

Usage

validate_method_arguments(
  weight_method,
  censor_method,
  trim_alpha,
  trim_q,
  time_points,
  conf_level,
  ps_control,
  censor_control,
  bootstrap_control,
  max_time
)

Value

Invisible NULL if checks pass; otherwise throws an error.

Arguments

weight_method

Character string specifying weighting method.

censor_method

Character string specifying censoring method.

trim_alpha

Numeric, symmetric trimming threshold.

trim_q

Numeric, asymmetric trimming quantile.

time_points

Numeric vector or NULL.

conf_level

Numeric, confidence level.

ps_control

List of PS model control parameters.

censor_control

List of censoring model control parameters.

bootstrap_control

List of bootstrap control parameters or NULL.

max_time

Numeric, maximum observed time (to check time_points range).