robust_calculation: Robust Variance Calculation

View source: R/robust.R

robust_calculationR Documentation

Robust Variance Calculation

Description

This function performs the calculation of robust standard errors based on variances estimated using sandwich::vcovCL.

Usage

robust_calculation(model, data_id)

Arguments

model

The logistic regression model object.

data_id

Values of id column of the data (ie data[, id]) to identify clusters.

Value

A list with elements summary, a table with the model summary using the robust variance estimates, and matrix, the sandwich covariance matrix.


TrialEmulation documentation built on Sept. 11, 2024, 9:06 p.m.