RawCode {Umacs}R Documentation

Generate a RawCode object for Umacs Sampler function

Description

Generates a RawCode object that is used to initialize an R function that performs a Gibbs updating set within the sampler function.

Usage

RawCode(update, init = NULL)

Arguments

update An R function to be executed in the iteration loop
init An R function to be executed before the iteration loop (chain); by default no code (code{NULL})

Details

RawCode is to be used only within the Sampler function call; the value of the argument (x) is made available (locally) in a sampling function that is built using the Umacs function Sampler

The name of the parameter that will have the value (x) is not specified here, but only within the Sampler function call.

Value

An object of class RawCode to be further processed by the Umacs function Sampler

Note

Usually a call to this function is not necessary, since it is implicitly done when an R function is given in the argument list of the Sampler function call without a name.

RawCode must be associated with a parameter name. Components of vector parameters specified to be RawCodes cannot be updated, but those specified to be Data can be updated.

To specify a local function that is supposed to be available, use the function LocalFunction.

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]