Data {Umacs}R Documentation

Specify Umacs Parameter As Data

Description

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.

Usage

Data(x)

Arguments

x a numeric data object to be associated to the model parameter

Details

The parameter is supposed to be `unmodeled data,' specified by the likelihood.

Value

An object of class Data.

Note

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.

Author(s)

Jouni Kerman <jouni@kerman.com>

References

Kerman, Jouni. Umacs: A Universal Markov Chain Sampler. Technical report, Columbia University, New York.

See Also

Umacs-package for an overview of the Umacs package.

Sampler for how to create a sampler function; see the vignette for details.

Package `rv'.


[Package Umacs version 0.924 Index]