Description Usage Arguments Value

View source: R/BNPConMediation.R

Obtain posterior means and credible intervals of the effects.

1 2 | ```
bnpconmediation(obj1, obj0, q, NN = 10, n1, n0, extra.thin = 0,
cond.values = c(45, 35), col.values = c(1, 2))
``` |

`obj1` |
The fitted model of the observed data under Z=1 from DPdensity |

`obj0` |
The fitted model of the observed data under Z=0 from Dpdensity |

`q` |
A dimension of the observed data, i.e., number of covariates plus 2 |

`NN` |
Number of samples drawn for each iteration from the joint distribution of the mediator and the covariates. Default is 100. |

`n1` |
Number of observations under Z=1 |

`n0` |
Number of observations under Z=0 |

`extra.thin` |
Giving the extra thinning interval |

`cond.values` |
conditional values of the covariates |

`col.values` |
columns orders of the conditional covariates among all covariates |

ENIE Posterior mean of the NIE

ENDE Posterior mean of the NDE

ETE Posterior mean of the TE

IE.c.i 95% C.I. of the NIE

DE.c.i 95% C.I. of the NDE

TE.c.i 95% C.I. of the TE

Y11 Posterior samples of Y11

Y00 Posterior samples of Y00

Y10 Posterior samples of Y10

lit777/BNPMediation documentation built on June 6, 2017, 9:21 a.m.

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.