View source: R/simulations_data.R
simulations_data | R Documentation |
Output a data frame that, for each set of design parameters, includes the cost, the estimated power and SE, the surrogate model estimated power and SE, and the number of performed evaluations.
simulations_data(ds)
ds |
Object of class designresult as created by the find.design function |
The raw power is estimated using the ratio of significant hypothesis tests among the performed evaluations. The raw SE is estimated using p(1-p)/n
with p
being the raw power and n
being the number of performed evaluations.
For the estimation of SE using a surrogate model, GPR is employed because it is capable of variance estimation, unlike the other surrogate models.
A data frame
# Load a simulation function
simfun <- example.simfun('ttest')
# Perform the search
ds <- find.design(simfun = simfun, boundaries = c(100,300), power = .95)
# Display more info on the collected data
simulations_data(ds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.