Description Usage Arguments Details Value See Also Examples
bcgp_model
constructs an instance of S4 class bcgpmodel
. This
object contains information describing the desired Bayesian Composite
Gaussian Process (BCGP) model. The bcgpmodel
object can then be used
to draw samples from the model.
1 2 3 |
x |
An n x d matrix containing the independent variables in the training set. |
y |
A vector of length n containing the observed response values in the training set. |
priors |
Can be either the string "default" or a list containing the values for the prior parameters.
|
inits |
Can be either the string "random" or a list of length
|
noise |
If the data is assumed to be noise-free, then |
algorithm |
One of either "M-H and Gibbs" or "Stan". If "M-H and Gibbs", the sampling algorithm will be a combination of Metropolis-Hastings and Gibbs sampling. If "Stan", the sampling algorithm will be the No-U-Turn sampler implemented by Stan. |
scaled |
A logical indicating whether the data should be scaled before
sampling. |
chains |
A positive integer specifying the number of Markov chains. The default is 4. This is here only to assist in the creation of the list of initial values. |
This object contains the data, information on the stationarity and whether a
composite model is desired or not. A list of priors can either be input or
created within this function. It is generally a good idea to run
createPriors
first to create a correctly-formatted list that
can be modified before inputting user-specified priors. A list of initial
values can either be input or created within this function. It is generally a
good idea to run createInits
first to create a
correctly-formatted list that can be modified before inputting user-specified
initial values.
An object of S4 class bcgpmodel
representing the setup for
fitting a BCGP model.
Other Major functions: bcgp
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.