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
Interpreting a non-linear relationship with predicted values and margins plot I am trying to interpret a non-linear relationship in a fixed effects model. Attached is my Stata …
Wagstaff concentration Index for binary outcomeHi, I have read in existing literature that if we are dealing with a binary outcome (i.e th individ…
jackknife loop with wrong number of observationsforvalues i = 1/139 { reg fawtd fdistockgdp if seqnum != `i', robust outreg2 using table, append e…
ARDL lag coefficientsHi everyone or anyone who knows this better than me, I am trying to fit the following short-run equ…
How to generate a new variable based on existing variablesDear Stata experts, I have a dataset like below. "tiea"=1 means in a given year the company has a c…
Subscribe to:
Post Comments (Atom)
0 Response to How to add a macro/string variable to a matrix
Post a Comment