# extractor.toy

0th

Percentile

##### Extracts lat/long matrix and theta matrix from D2.

Extracts x.star.toy and t.vec.toy from D2; toy example needed because the extraction differs from case to case.

Keywords
array
##### Usage
extractor.toy(D1)
##### Arguments
D1

Matrix of code run points

##### Details

The first two columns give the elements of x.star and columns 3 through 5 give the elements of t.vec.

Function extractor.toy is the inverse of function D1.fun, in the sense that extractor.toy splits up D1 into x.star and t.vec, while D1.fun joins them up again

##### Value

Returns a list with two elements:

x.star

A matrix containing the lat/longs of the code run points

t.vec

A matrix containing the parameters used for the code runs

##### References

• M. C. Kennedy and A. O'Hagan 2001. Bayesian calibration of computer models. Journal of the Royal Statistical Society B, 63(3) pp425-464

• M. C. Kennedy and A. O'Hagan 2001. Supplementary details on Bayesian calibration of computer models, Internal report, University of Sheffield. Available at http://www.tonyohagan.co.uk/academic/ps/calsup.ps

• R. K. S. Hankin 2005. Introducing BACCO, an R bundle for Bayesian analysis of computer code output, Journal of Statistical Software, 14(16)

toys, D1.fun

##### Aliases
• extractor.toy
##### Examples
# NOT RUN {
data(toys)
extractor.toy(D1.toy)
extractor.toy(D1.toy[1,,drop=FALSE])
(jj <- extractor.toy(D1.fun(x.star=x.toy , t.vec=theta.toy)))
D1.fun(jj$x.star,jj$t.vec)

# }

Documentation reproduced from package calibrator, version 1.2-8, License: GPL-2

### Community examples

Looks like there are no examples yet.