select_results: Select simulation results

Description Usage Arguments Value Author(s) Examples

Description

Select something for each first stages sample size from a data.table of simulation results

Usage

1
2
select_results(maxsim, what, base_columns = c("delta", "sigma", "d", "n1",
  "s"), functional = which.min)

Arguments

maxsim

data.table of simulation results

what

character vector of column names according to which the selection should be performed

base_columns

columns to keep from original data.table use NULL to keep all columns

functional

function applied columns what whithin each unique first stage sample size that returns an index of the selected rows

Value

data.table with selected rows, plus one row giving the column name the selection was based on

Author(s)

Florian Klinglmueller

Examples

1
2
3
data(maxsim)
## select largest (absolute) mean.bias for each first stage sample size
select_results(maxsim,'mean.bias')

floatofmath/blindConfidence documentation built on May 16, 2019, 1:20 p.m.