diag_par | R Documentation |
'diag_par()' partition the matrix of 'z' regressors which coefficients are changed based on the provided 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 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.