swing.policy | R Documentation |
Simulate \sum_k h(X_{tau_k})
using fit
emulators
swing.policy(
x,
M,
fit,
model,
offset = 1,
use.qv = FALSE,
n.swing = 1,
verbose = FALSE
)
x |
a matrix of starting values (N x |
M |
number of time steps to forward simulate |
fit |
a list of fitted emulators that determine the stopping classifiers to be used |
model |
List containing all model parameters. In particular uses |
offset |
deprecated |
use.qv |
experimental, do not use |
n.swing |
number of swing rights (integer, at least 1) |
verbose |
for debugging purposes |
Should be used in conjuction with the swing.fixed.design
function that builds the emulators.
a list containing:
payoff
: a vector of length 'nrow(x)' containing the resulting payoffs NPV from $t=0$
tau
matrix of the times when stopped. Columns represent the rights exercised
nsims
number of total 1-step simulations performed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.