This internal function processes results from cluster-specific model fittings for cluster-robust inference functions. It combines results, computes variance-covariance matrix, standard errors, t-statistics, p-values, and confidence intervals for each independent variable.
process_results(results, ind_variables, ci.level, drop, return.vcv)A list containing the following elements:
A matrix of p-values for each independent variable.
A matrix with the lower and upper bounds of the confidence intervals for each independent variable.
The variance-covariance matrix of the cluster-averaged
coefficients, returned if return.vcv is TRUE.
The cluster-averaged coefficients, returned if return.vcv
is TRUE.
A list of results from cluster-specific model fittings.
A vector of independent variable names for which the results are computed.
Confidence level for the confidence intervals.
Logical; if TRUE, clusters with failed model fits are omitted from the results.
Logical; if TRUE, returns the variance-covariance matrix of the cluster-averaged coefficients.
Workflow defined in clusterSEs::cluster.im.glm() function.