llm.predict: Create Logit Leaf Model

Description Usage Arguments Value

Description

This function creates the logit leaf model. It assumes a dataframe with numeric values as input and a corresponding vector with dependent values. Decision tree parameters threshold for pruning and number of observations per leaf can be set.

Usage

1
llm.predict(df, y_value, llm_object)

Arguments

df

dataframe containing numerical independent variables

y_value

numerical vector of dependent variable. Currently only two class classification is supported

llm_object

output of the llm function. A LLM object containing decision rules that define segments and logistic regressions per segment

nbr_obs_leaf

the minimum number of observations in a leaf node

Value

the predictions of the llm model


arnodc2/LLM documentation built on May 17, 2019, 1:35 p.m.