seq.g.vcov: Consistent Variance estimator
Description
Called internally in sequential_g
Usage
# S3 method for g.vcov
seq(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