check_data_structure: Check Data Structure

View source: R/U01-data-validation.R

check_data_structureR Documentation

Check Data Structure

Description

Validates that the data structure is appropriate for model fitting. Only stops if models cannot be fit numerically.

Usage

check_data_structure(data, treatment_var, ps_formula, censor_formula)

Arguments

data

A data.frame containing the analysis data.

treatment_var

Character string of treatment variable name.

ps_formula

Formula object for propensity score model.

censor_formula

Formula object for censoring model.

Value

Invisible NULL if checks pass; otherwise throws an error.


PSsurvival documentation built on Dec. 9, 2025, 9:07 a.m.