Description Usage Arguments Details Value Author(s) References See Also Examples
Extracts x.star.toy and t.vec.toy from D2; toy
example needed because the extraction differs from case to case.
1 | extractor.toy(D1)
|
D1 |
Matrix of code run points |
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
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 |
Robin K. S. Hankin
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)
1 2 3 4 5 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.