set_imp {dgpsi} | R Documentation |
Reset number of imputations for a DGP emulator
Description
This function resets the number of imputations for predictions from a DGP emulator.
Usage
set_imp(object, B = 5)
Arguments
object |
an instance of the S3 class |
B |
the number of imputations to produce predictions from |
Details
See further examples and tutorials at https://mingdeyu.github.io/dgpsi-R/.
Value
An updated object
with the information of B
incorporated.
Note
This function is useful when a DGP emulator has been trained and one wants to make faster predictions by decreasing the number of imputations without rebuilding the emulator.
The following slots:
-
loo
andoos
created byvalidate()
; and -
results
created bypredict()
inobject
will be removed and not contained in the returned object.
-
Examples
## Not run:
# See design() for an example.
## End(Not run)