get_adjusted_cat_init: Adjusted Cat Initialization

get_adjusted_cat_initR Documentation

Adjusted Cat Initialization

Description

This function adjusts the categorical initialization by creating a model frame for the predictors specified in the right-hand side of the formula and splits the adjusted data into observed and synthetic parts.

Usage

get_adjusted_cat_init(cat_init, formula_rhs)

Arguments

cat_init

The object generated from cat_glm_initialization, cat_cox_initialization or cat_lmm_initialization

formula_rhs

A formula specifying the right-hand side of the model for predictors.

Value

A list containing the original cat_init with added components: - adj_x: The adjusted model frame for the predictors. - adj_obs_x: The observed part of the adjusted predictors. - adj_syn_x: The synthetic part of the adjusted predictors.


catalytic documentation built on April 4, 2025, 5:51 a.m.