View source: R/adjusted_coef.R

adjusted_coef | R Documentation |

This function calculates the adjusted effect after controlling for confounding effects. You can use d values or standardized regression coefficients.

```
adjusted_coef(effect_xz, effect_uxz, effect_d)
```

`effect_xz` |
Effect of x on y given z |

`effect_uxz` |
Effect of u on y given x and z |

`effect_d` |
Effect size difference of interest |

Adjusted effect size of x on y given u and z

```
adjusted_coef(effect_xz = .2,
effect_uxz = .4,
effect_d = .12)
```

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.