Hello,
I have to test for structural breaks in a time series; in particular, I want first to check for breaks and then to check if there is a break in 1992. I found that I should use the command estat sbknown, so my code is:
tsset country year
xi: reg score i.year i.country
breakvars(year)
And then
estat sbknown, break(1992)
However, when I try to run it, Stata gives me the error message “sample may not include multiple panels-r(459)”. I don’t understand why it says “multiple panels”; I only have one dataset where the same countries are followed over time. I thought the problem could arise when using tsset, which gives me the output:
tsset country year
panel variable: country (unbalanced)
time variable: year, 1957 to 2019, but with gaps
delta: 1 unit
But I doubt it.
Does anyone know why I get the error?
Thanks everyone in advance!
Related Posts with test for structural breaks
How to take individuals for which info is available in both waves only?Hi, I am working with BHPS dataset. I have appended Waves 9 & 10 and have declared it as panel. …
Using Weights for countries in Survey DatasetHello everyone, I am working with 2 waves (5 and 6) of World Value Survey in Stata 15 and I am anal…
IVprobit with 2 endogenous regressorsDear all, I have a regression with binary outcomes and two endogenous continuous regressors. When I…
collapse or Roger Newman's xcollapse with string variablesTried help (and the help for xcollapse) but can't get an answer that makes sense to me. I have three…
Why does teffects psmatch number of observations not match number of treated + number of controls with 1 match per treated?My data have 200 treated units and 9,800 untreated units. When I run teffects psmatch using default …
Subscribe to:
Post Comments (Atom)
0 Response to test for structural breaks
Post a Comment