set_vecchia | R Documentation |
This function adds or removes the Vecchia approximation from a GP, DGP or linked (D)GP emulator
constructed by gp()
, dgp()
or lgp()
.
set_vecchia(object, vecchia = TRUE, M = 25, ord = NULL)
object |
an instance of the S3 class |
vecchia |
a bool or a list of bools to indicate the addition or removal of the Vecchia approximation:
|
M |
the size of the conditioning set for the Vecchia approximation in the (D)GP emulator training. Defaults to |
ord |
an R function that returns the ordering of the input to the (D)GP emulator for the Vecchia approximation. The function must satisfy the following basic rules:
If |
See further examples and tutorials at https://mingdeyu.github.io/dgpsi-R/.
An updated object
with the Vecchia approximation either added or removed.
This function is useful for quickly switching between Vecchia and non-Vecchia approximations for an existing emulator without the need to reconstruct the emulator. If the emulator was built without the Vecchia approximation, the function can add it, and if the emulator was built with the Vecchia approximation, the function can remove it. If the current state already matches the requested state, the emulator remains unchanged.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.