info {mmiCATs}R Documentation

Extract Model Information for Cluster-Adjusted Robust Inference

Description

This internal function extracts essential information from a model object and associated data, specifically for use in cluster-adjusted robust inference functions like cluster_im_glmRob and cluster_im_lmRob. It handles variable extraction, clustering information, and filtering the dataset based on the model's usage.

Usage

info(formula = NULL, cluster, dat, robmod)

Arguments

formula

A formula used in the model fitting.

cluster

A formula or a character string indicating the clustering variable in dat.

dat

A data frame containing the data used in the model.

robmod

A robust model object from which to extract information.

Value

A list containing the following elements:

variables

Vector of all variable names used in the model.

clust.name

Name of the clustering variable.

dat

Filtered data set containing only the observations used in the model.

clust

Vector representing the cluster index for each observation in dat.

ind.variables.full

Names of all independent variables including dropped ones, if any, in the model.

ind.variables

Names of non-dropped independent variables used in the model.


[Package mmiCATs version 0.1.1 Index]