Learn R Programming

MRTAnalysis (version 0.4.1)

mcee_config_rf: Configure Random Forest for MCEE nuisance parameters

Description

Creates a configuration to fit nuisance parameters using random forests via randomForest::randomForest(). Good for nonlinear patterns.

Usage

mcee_config_rf(target, formula)

Value

A configuration list for use with mcee_general.

Arguments

target

Character. Nuisance parameter name ("p", "q", "eta", "mu", "nu").

formula

RHS-only formula (e.g., ~ X1 + X2 + dp).

Examples

Run this code
# Random forest for complex propensity model
cfg_q <- mcee_config_rf("q", ~ dp + M + X1 + X2)

Run the code above in your browser using DataLab