simTestSize: simTestSize: main function of package simTestSize

Description Usage Arguments Value Examples

View source: R/simTestSize.R

Description

computes a suggested best number of test chunks, i.e., calls to the function passed to the argument drawFunction.

Usage

1
2
simTestSize(learningAlgorithm, drawFunction, g, conf.level = 0.95,
  testChunkSize, Nwithin = 110, Nbetween = 100, ...)

Arguments

learningAlgorithm

a function that takes learning data as argument and outputs a prediction rule in the form of another function that maps test data to numeric vectors. These can be errors or AUCs, one for each testing data set.

drawFunction

a function that returns a dataframe with the response variable in a column names y

g

the learning sample sizelearningAlgorithm, drawFunction, Nwithin=12, Nbetween=17)

conf.level

the confidence level; defaults to .95

testChunkSize

the sample size of a single test chunk

Nwithin

number of test chunks to be drawn for each training iteration. In the paper, this number was called n_test.

Nbetween

number of training data sets to be drawn. In the paper, this number was calles N.

...

additional parameters to be passed to the drawFunction

Value

a list with entries lower, point, upper for the confidence interval for the ratio of the two variances and another for the optimal number of test chunks, the error matrix, the times C and B, and the variance within learning sets (vwl), and the variance between learning sets (vbl).

Examples

1
2
3
4
5
6
simTestSize(
learningAlgorithm=svmLearning,
drawFunction=drawLogit,
g=20,
testChunkSize=1
)

Mathias-Fuchs/simTestSize documentation built on May 7, 2019, 3:42 p.m.