Data {Umacs} | R Documentation |
Generates an object of class Data
that embeds the argument value
as an object locally in the sampler function generated by Sampler
.
The name of the object is taken to be the associated parameter name.
Usually a call to this function is not necessary,
since Data
is implicitly called when the value of a named
parameter in the argument list of Sampler
is
an R object but not a function,numeric object or an
instance of the Umacs class Parameter
.
Data(x)
x |
a numeric data object to be associated to the model parameter |
The parameter is supposed to be `unmodeled data,' specified by the likelihood.
An object of class Data
.
The Sampler
function recognizes numeric, named parameters
and wraps them by default in Data(...)
, so usually this function
is never explicitly called by the user.
To embed an R function locally into the sampler function,
use LocalFunction
instead.
To embed just any non-function object locally into the sampler function,
use LocalObject
instead.
Jouni Kerman <jouni@kerman.com>
Kerman, Jouni. Umacs: A Universal Markov Chain Sampler. Technical report, Columbia University, New York.
Umacs-package
for an overview of the Umacs package.
Sampler
for how to create a sampler function; see the vignette for details.
Package `rv'.