Skip to contents

tp_model takes TreePPL code and prepares it to be used by tp_treeppl().

Usage

tp_model(model_input)

Arguments

model_input

One of tree options:

  • The full path of the model file that contains the TreePPL code, OR

  • A string with the name of a model supported by treepplr (see tp_model_names()), OR

  • A string containing the entire TreePPL code.

Value

A TreePPL model (S3). A structured list with the string containing the TreePPL model and a class (tp_model_names() or "custom")