Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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()

Details

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

Value

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

Author(s)

Robin K. S. Hankin

See Also

Examples

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)

multivator

A Multivariate Emulator

v1.1-10
GPL-2
Authors
Robin K. S. Hankin [aut, cre] (<https://orcid.org/0000-0001-5982-0415>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.