Checks if formula is in advanced format and translates if not.

create_model.formula(formula, data, verbose = FALSE)



The model formula, where

  • it must contain exatly one tilde (~), with response variable on the left-hand side and model terms on the right-hand side

  • terms are be separated by a plus (+) sign

  • all variables appearing in formula must be found in data

See the "Model formula syntax" section below (lgp) for instructions on how to specify the model terms.


A data.frame where each column corresponds to one variable, and each row is one observation. Continuous covariates and the response variable must have type "numeric" and categorical covariates must have type "factor". Missing values should be indicated with NaN or NA. The response variable cannot contain missing values. Column names should not contain trailing or leading underscores.


Should some informative messages be printed?


an object of class lgpformula

See also

Other internal model creation functions: create_model.covs_and_comps(), create_model.likelihood(), create_model.prior()