Learn R Programming

multivator (version 1.1-4)

obs_maker: Create observations

Description

A function to create observations using known parameters and hyperparameters

Usage

obs_maker(x, hp, LoF, beta, Sigma=NULL, ...)

Arguments

x
Object of class mdm: each row is a point in parameter space
hp
Object of class mhp
LoF
List of functions
beta
Vector of regression coefficients
Sigma
Variance matrix, with default NULL meaning to use var.matrix(x,hp)
...
Further arguments passed to var.matrix()

Value

Returns a (named) vector of observations. Note that the observations may have different units (eg temperature in Kelvin, rainfall in millimeters per year).

Details

Uses the mvtnorm package to generate observations directly from the parameters and hyperparameters as a Gaussian process.

See Also

toy_mm_maker

Examples

Run this code
data(mtoys)
d <- obs_maker(toy_mm , toy_mhp, toy_LoF, toy_beta)
d <- obs_maker(toy_mm_maker(6,7,8) , toy_mhp, toy_LoF, toy_beta)



Run the code above in your browser using DataLab