View source: R/DirectEffects.R

Called internally in sequential_g

1 2 | ```
## S3 method for class 'g.vcov'
seq(first_mod, direct_mod, X1, X2, med.vars)
``` |

`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 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.