Description Usage Arguments Details Value Examples
Helper function that dispatches to OLS for the post-double estimation.
1 | ols_helper(X, Y, W)
|
X |
A matrix of covariates (must be all numeric) |
Y |
A vector of the target variable, of same length as the number of rows of Y, must be numeric |
W |
A vector of the treatment variable, of same length as the number of rows of X, must be numeric |
This function is mostly implemented to provide the option to use ols with cross fitting, though it is assumed that this will be rarely used.
A list with two elements: The fitted W model and the fitted Y model.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.