Learn R Programming

iai (version 1.10.2)

get_regression_constant.prescription_tree_learner: Return the constant term in the linear regression prediction at a node of a prescription tree

Description

Julia Equivalent: IAI.get_regression_constant

Usage

# S3 method for prescription_tree_learner
get_regression_constant(obj, node_index, treatment, ...)

Arguments

obj

The learner to query.

node_index

The node in the tree to query.

treatment

The treatment to query.

...

Refer to the Julia documentation for available parameters.

Examples

Run this code
if (FALSE) iai::get_regression_constant(lnr, 1, "A")

Run the code above in your browser using DataLab