I run a structural break test using the command estat sbsingle for a large number of regressions. I would like to generate a matrix called mbreak with the estimation results. I have no problem adding the p-value and test statistic from the return list to my matrix, but I have difficulties, adding the break date. The break date is stored in the results list as a macro r(breaktest). How can I add it to my matrix? The break date variable is in date format...
It tried already:
matrix mbreak[`x',4] = r(breakdate)
or
local Date = r(breakdate)
matrix mbreak_`y'[`x',4] = `Date'
But it doesn't work.
Thanks in advance for your support!
Related Posts with How to add a macro/string variable to a matrix
How to implement the herding measure proposed by Lakonishok et. al (1992) in stataHi all I am currently calculating herd behavior on the trading platform "Robinhood" and I am using …
Program to copy packages to local folderA recent thread on this forum inspired me to ask an opposite question of sorts. In environments wher…
How to calculate a running covarance and store the values?Hi, I have panel data, permno is my panel variable. I want to create covariance between returns and …
Include slope on binscatter plotHello, I am new to Stata - I was wondering if there is a way to add the value of the slope to binsc…
String matching to create multiple variablesI need help grouping/creating variables based on string matching. For each patient, they get a new r…
Subscribe to:
Post Comments (Atom)
0 Response to How to add a macro/string variable to a matrix
Post a Comment