Description Usage Arguments Details Value Examples

Provides a convenient function to calculate the double ML estimated debiased treatment effect *θ*.

1 2 3 |

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

`method` |
A selection of methods to use when doing post double selection. |

`show.progress` |
Whether to display the simulation progress, defaults to TRUE. |

`specify.own` |
Allows the user to supply the method to calculate |

`k.fld` |
How many fold crossfitting to use, defaults to 2. |

`simulations` |
How many simulations to use for the final result. |

`validate.inputs` |
A safety measure indicating whether the types of inputs should be checked, defaults to TRUE (disabled for custom methods). |

`seed.use` |
The seed to use for simulations, defaults to 1071. |

`...` |
Other arguments to be passed on, see rf_helper, glmnet_helper and ols_helper for details. |

Custom functions are currently implemented through a function called custom_generator. For these custom functions, refer to that function and usage examples.

An object of class "ML_Treatment_Effects" that can be further manipulated (ie there is a plot method implemented).

1 2 3 4 5 6 7 8 9 10 |

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.