info {mmiCATs} | R Documentation |
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.
info(formula = NULL, cluster, dat, robmod)
formula |
A formula used in the model fitting. |
cluster |
A formula or a character string indicating the clustering
variable in |
dat |
A data frame containing the data used in the model. |
robmod |
A robust model object from which to extract information. |
A list containing the following elements:
Vector of all variable names used in the model.
Name of the clustering variable.
Filtered data set containing only the observations used in the model.
Vector representing the cluster index for each observation in
dat
.
Names of all independent variables including dropped ones, if any, in the model.
Names of non-dropped independent variables used in the model.