create_method: Creates the methods to be used in 'ensemble'

View source: R/ensemble.R

create_methodR Documentation

Creates the methods to be used in ensemble

Description

Creates the methods to be used in ensemble

Usage

create_method(method, x_select = NULL, args = list(), name = NULL)

Arguments

method

Choose method from currently c("mean","ols",ridge","plasso",forest_grf","lasso").

x_select

Optional logical vector of length equal to the number of columns of the covariate matrix indicating which variables should be used by this method. E.g. tree-based methods usually should not be provided with the interactions that Lasso is using.

args

Optional list containing the additional arguments that should be passed to the underlying method.

name

Optional string naming the method.

Value

Method that can be passed to ensemble.


MCKnaus/causalDML documentation built on Aug. 19, 2023, 5:47 p.m.