powered by
diag_par() partition the matrix of z regressors which coefficients are changed based on the provided break dates
diag_par()
z
diag_par(input, m, date)
output: matrix of partitioned variables corresponds to break dates
matrix of independent variables z with coefficients allowed to change overtime
number of breaks in the series
vector of 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)
Run the code above in your browser using DataLab