meanScenarios: Calculate the average stochastic scenario

Description Usage Arguments Value Examples

View source: R/benchmark.R

Description

Calculates the mean of the stochastic scenarios at each time

Usage

1
meanScenarios(scenarios)

Arguments

scenarios

A data frame containing the scenarios, in format of the output of hull_white()

Value

A vector containing the mean of the stochastic scenarios at each time

Examples

1
2
soaScenarios <- bmarkScenarios("~/Desktop/StocVal/Data/soascenario.csv");
 meanScenarios.out <- meanScenarios(soaScenarios$term1)

nathanesau-academic/StocVal documentation built on Nov. 4, 2019, 8:35 p.m.