seq_g_vcov: Consistent Variance estimator

View source: R/DirectEffects.R

seq_g_vcovR Documentation

Consistent Variance estimator

Description

Called internally in sequential_g

Usage

seq_g_vcov(first_mod, direct_mod, X1, X2, med.vars)

Arguments

first_mod

first stage model

direct_mod

DirectEffects model with terms

X1

model matrix of first stage model

X2

model matrix of DirectEffects model

med.vars

vector of term.label attributes for mediators


mattblackwell/DirectEffects documentation built on March 1, 2025, 6:53 p.m.