Learn R Programming

PSsurvival (version 0.2.0)

check_data_structure: 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)

Value

Invisible NULL if checks pass; otherwise throws an error.

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.