xdtransform {XDNUTS} | R Documentation |
Function to apply a transformation to the samples from the output of an XDNUTS model.
Description
Function to apply a transformation to the samples from the output of an XDNUTS model.
Usage
xdtransform(
X,
which = NULL,
FUN = NULL,
...,
new.names = NULL,
thin = NULL,
burn = NULL
)
Arguments
X |
an object of class |
which |
a vector of indices indicating which parameter the transformation should be applied to.
If |
FUN |
a function object which takes one or more components of an MCMC iteration and any other possible arguments. |
... |
optional arguments for FUN. |
new.names |
a character vector containing the parameter names in the new parameterization. If only one value is provided, but the transformation involves more, the name is iterated with an increasing index. |
thin |
an integer value indicating how many samples should be discarded before returning an iteration of the chain. |
burn |
an integer value indicating how many initial samples for each chain to discard. |
Value
an object of class XDNUTS
with the specified transformation applied to each chain.