NFCP (version 0.1.0)

NFCP.bounds: NFCP.bounds

Description

Generate boundaries for the domain of parameters of the N-factor model for parameter estimation.

Usage

NFCP.bounds(parameters)

Arguments

parameters

a vector of parameter names of an N-factor model. Function NFCP.Parameters is recommended.

Value

A matrix of defaulted domains for the given unknown parameters. The first column corresponds to the lower bound of the allowable search space for the parameter, whilst the second column corresponds to the upper bound. These values were set to allow for the 'realistic' possible values of given parameters as well as restricting some parameters (such as variance and mean-reverting terms) from taking negative values. The format of the returned matrix matches that required by the Domains argument of the Genoud function from the package RGenoud.

Details

The NFCP.bounds function is called 'as-is' within the NFCP.MLE function when domains are not provided as an input. NFCP.bounds allows easy setting of custom boundaries for parameter estimation, whilst also providing default domains of parameters that should realistically work for all types of observation datasets.

References

Mebane, W. R., and J. S. Sekhon, (2011). Genetic Optimization Using Derivatives: The rgenoud Package for R. Journal of Statistical Software, 42(11), 1-26. URL http://www.jstatsoft.org/v42/i11/.

Schwartz, E. S., and J. E. Smith, (2000). Short-Term Variations and Long-Term Dynamics in Commodity Prices. Manage. Sci., 46, 893-911.

Examples

Run this code
# NOT RUN {
##Specify the Schwartz and Smith (2000) two-factor model
##with constant contract white noise:
SS.parameters <- NFCP.Parameters(N.factors = 2,
                                GBM = TRUE,
                                Initial.State = TRUE,
                                S.Constant = TRUE)

###Generate the default 'domains' argument of 'NFCP.MLE' function:
NFCP.MLE.Bounds <- NFCP.bounds(SS.parameters)
# }

Run the code above in your browser using DataCamp Workspace