diag_par | R Documentation |
Function constructs the matrix of regressors z which coefficients are changed on the estimated break dates
diag_par(input, m, date)
input |
matrix of independent variables z with coefficients allowed to change overtime |
m |
number of breaks in the series |
date |
vector of estimated break dates |
output: matrix of partitioned variables corresponds to break dates
z = matrix(c(1:100),50,2) m = 2 #2 breaks date = matrix(c(15,30),2,1) #first break at t = 15; second break at t = 30 diag_par(z,m,date)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.