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
Choosing the 7-day-value per countryHi everyone, I'm working with a dataset that shows me the number of infected people with Covid-19 p…
What statistical analysis should I use?Hello, I am bit confused in multivariate logistic regression analysis. I was reading a paper and t…
if command with 3 conditionsI am trying to generate a new variable using the "if" command based on 3 other variables ex: gen com…
CollapseI hope all is well with you. I have a question about "collapse". I want to create tables with the '…
Two loop of foreach: How to outreg2?Could you kindly help me? I try to produce regression using three different variables (physical con…
Subscribe to:
Post Comments (Atom)
0 Response to How to add a macro/string variable to a matrix
Post a Comment