optimalNbAnalogOfAnalogs: Assign the optimal number of analogues to every analogue date

Description Usage Arguments Value Examples

View source: R/evalNbAnalogs.R

Description

Assign the optimal number of analogues to every analogue date. This only works on the calibration period, where the optimal number of analogues can be assessed for the non independent dates.

Usage

1
optimalNbAnalogOfAnalogs(A, target.a.nb)

Arguments

A

Results of AtmoSwing as parsed by atmoswing::parseAllNcOutputs.

target.a.nb

Results of atmoswing::optimalNbAnalog

Value

Matrix of the optimal number of analogues for each analogue date.

Examples

1
2
3
4
5
6
7
## Not run: 
data <- atmoswing::parseAllNcOutputs('optim/1/results', 1, 'validation')
res.crps <- atmoswing::crpsNbAnalogs(data)
target.a.nb <- atmoswing::optimalNbAnalog(res.crps$crps.smoothed)
res <- atmoswing::optimalNbAnalogOfAnalogs(data, target.a.nb$nb.min.med)

## End(Not run)

atmoswing/R-toolbox documentation built on Nov. 8, 2019, 3:49 p.m.