Description Usage Arguments Value

View source: R/outcome_models.R

Fit a Comparitive interupted time series to fit E[Y(0)|X]

1 | ```
fit_prog_cits(X, y, trt, poly_order = 1, weights = NULL)
``` |

`X` |
Matrix of covariates/lagged outcomes |

`y` |
Matrix of post-period outcomes |

`trt` |
Vector of treatment indicator |

`poly_order` |
Order of time trend polynomial to fit, default 1 |

`weights` |
Weights to use in WLS, default is no weights |

y0hat Predicted outcome under control

params Regression parameters

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.