Description Usage Arguments Details Value Author(s) See Also Examples
Return redemption index
1 2 | getRedemptionTime(S, n, X)
getRedemptionTimesForMatrix(S, n, X)
|
S |
A (n x 1) vector of prices at valuation dates or a (N x n) matrix. |
n |
number of valuation dates; integer value. |
X |
A vector of call levels (length (n - 1)). |
For a price vector of n prices at valuation dates (S(t_1),…,S(t_n))', determine the first redemption index i such as S(t_i) ≥ X(t_i), \forall_{j < i} S(t_j) ≤ X(t_j) (i=1,…,(n-1) or i=n if S(t_1) ≤ X(t_1), …, S(t_{n-1}) ≤ X(t_{n-1}))
getRedemptionTime
returns a scalar; getRedemptionTimesForMatrix
returns a N x 1 vector.
Stefan Wilhelm
calcRedemptionProbabilities
and simRedemptionProbabilities
1 2 3 4 | S <- c(90, 95, 110, 120)
X <- c(100, 100, 100)
getRedemptionTime(S, n=4, X)
# 3
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.