performance: Running a computer experiment

Description Usage Arguments Details Value Examples

View source: R/methods-for-experiments.R

Description

Adding performance measures to the results

Usage

1
  performance(results, b, h)

Arguments

results

Needs to be of the same type as, for example, the return value of the computer experiments 'experimentY', 'experimentD'.

b

true regression coefficients.

h

true heterogeneity.

Details

Calculating performance measurements from a computer experiment.

Value

Data frame containing performance measurements of inference methods based on the results of the computer experiment given by 'results'.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
h_test <- 0.03
x_test <- cbind(1,1:7)
b_test <- c(.5, .25)
sgnf_test <- c(0.025, 0.01)

set.seed(5133568) # for reproducibility
d_test <- rchisq(7, df=0.02)

# In an actual computer experiment, use 'piv_draws=1000' instead!!
eY <- experimentY(n=5, h=h_test, d=d_test, x=x_test, b=b_test,
  sgnf=sgnf_test, piv_draws=50)

performance(results=eY, b=b_test, h=h_test)

metagen documentation built on May 29, 2017, 7:13 p.m.