Skip to contents

tp_model takes TreePPL programm code and out an model to becheck by tp_treeppl().

Usage

tp_model(model_input)

Arguments

model_input

polymorphic parameter (see below).

Value

A TreePPL model (S3). A structured list with a 1 string as a representation of the TreePPL model and a class object = (tp_model_name() or "custom")

Details

This function takes TreePPL programm code and import them.

model_input : The full path of the model file that contains the TreePPL programm code OR model_input : The model name of one model supported by treepplr package (see tp_model_name() for model supported) OR model_input : The full string containing TreePPL programm code.