Description Usage Arguments Value Examples
Evaluate mean and variance of the DoIt approximation of the target density at a number of evaluation points.
1 | doit_approx(doit, theta_eval)
|
doit |
An object of class 'doit', see function 'doit_fit'. |
theta_eval |
A data frame of evaluation points. |
A data frame of the provided evaluation points and the corresponding mean and variance of the DoIt approximation.
1 2 3 4 5 | design = data.frame(x=rnorm(10), y=rnorm(10))
design$f = with(design, exp(-0.5*(x+y)^2))
fit = doit_fit(design)
theta_eval = expand.grid(x=seq(-2,2,.1), y=seq(-2,2,.1))
approx = doit_approx(fit, theta_eval)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.