Description Usage Arguments Value References Examples
monoRelation
implements the 'monotonic relationship' tests from Patton & Timmermann (2010, JFE). We define Δ_i = E[r_(i,t)] - E[r_(i-1,t)] and test
H0: Δ <= 0
vs.
H1: min_(i = 1..N){Δ_i} > 0
1 2 | monoRelation(data, bootstrapRep = 1000, increasing = TRUE,
difference = FALSE, block_length)
|
data |
an object of class |
bootstrapRep |
A numeric scalar: the number of used bootstrap samples. |
increasing |
An object of class |
difference |
An object of class |
block_length |
A numeric scalar: The average length of the block to usefor the stationary bootstrap. This parameter is related to how much serial correlation is in your data. Use 10/6/3/2 as the block length if data is measured in daily/monthly/quarterly/annual returns. |
monoRelation
returns an object of class
"matrix"
.
The returning matrix consists of the following components:
matrix |
a 4x2 matrix. The values of the first column are non-studentised, the values of the second column are studentised. Row (1): the t-statistic associated with a t-test that Δ_i <= 0 Row (2): the p-value associated with a t-test that Δ_i <= 0 Row (3): the MR test p-value from the proposed test, based on adjacent portfolios Row (4): the MR test p-value from the proposed test, on all pair-wise portfolio comparisons |
Patton, A. and Timmermann, A. (2010): Monotonicity in asset returns: New testes with applications to the term structure, the CAPM, and portfolio sorts. Journal of Financial Economics, 98, No. 3, p. 605–625. doi: 10.1016/j.jfineco.2010.06.006.
1 2 3 | ## load non-difference return data and apply test with daily returns.
data(demo_returns)
monoRelation(demo_returns, block_length = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.