create_model {lgpr} | R Documentation |
Create a model
Description
See the Mathematical description of lgpr models vignette for more information about the connection between different options and the created statistical model.
Usage
create_model(
formula,
data,
likelihood = "gaussian",
prior = NULL,
c_hat = NULL,
num_trials = NULL,
options = NULL,
prior_only = FALSE,
verbose = FALSE,
sample_f = !(likelihood == "gaussian")
)
Arguments
formula |
The model formula, where
See the "Model formula syntax" section below ( |
data |
A |
likelihood |
Determines the observation model. Must be either
|
prior |
A named list, defining the prior distribution of model
(hyper)parameters. See the "Defining priors" section below
( |
c_hat |
The GP mean. This should only be given if
where |
num_trials |
This argument (number of trials) is only needed when
likelihood is |
options |
A named list with the following possible fields:
If |
prior_only |
Should likelihood be ignored? See also
|
verbose |
Should some informative messages be printed? |
sample_f |
Determines if the latent function values are sampled
(must be |
Value
An object of class lgpmodel, containing the
Stan input created based on parsing the specified formula
,
prior
, and other options.
See Also
Other main functions:
draw_pred()
,
get_draws()
,
lgp()
,
pred()
,
prior_pred()
,
sample_model()