Description Usage Arguments Value
View source: R/propensity_score_xgb.R
Function factory to predict treatment using xgboost.
1 2 3 4 5 6 | propensity_score_xgb(
nrounds = 50,
nthread = 1,
params = list(eta = 0.1, max.depth = 3),
...
)
|
nrounds |
Training rounds for the xgb algorithm. |
nthread |
Number of threads to use for fitting, default 1. |
params |
List of params to pass to xgboost, most likely something like |
... |
Additional xgboost params. |
returns a function that accepts train_test_list
and this returns a vector of predictions for the test data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.