Double Machine Learning for Multiple Treatments

add_intercept | Adds an intercept to a matrix |

CV_core | This function contains the core parts of the CV for Lasso and... |

dmlmt | Double machine learning for binary and multiple treatments' |

find_Xse_ind | Function finds the position for pre-specified SE rules |

fitted_values | This function extracts a subset of active variables (nm_act)... |

gps_cs | This function checks common support for a user provided... |

gps_prep | This function prepares the (generalized) propensity scores... |

norm_w_to_n | Function to normalize weights to N or to N in treated and... |

OLS_pred_w | This function calculates the OLS weights for the fitted... |

PO_dmlmt | This function calculates the potential outcomes for all... |

PO_dmlmt_w | This function calculates the weights impled by Double Machine... |

PO_dmlmt_w_gen | This function calculates the weights impled by Double Machine... |

post_lasso_cv | This function uses the 'glmnet' package to estimate the... |

TE_dmlmt | This function calculates the average treatment effects for... |

y_prep | This function prepares the fitted values of the outcome after... |

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.