tp_data takes data and prepares it to be used by
tp_treeppl().
Arguments
- data_input
One of tree options:
The full path of the JSON file that contains the data, OR
A string with the name of a model supported by treepplr (see
tp_model_names()), ORA list (or structured list) containing TreePPL data.
Value
a list, see tp_check_input() for further details.