I want to make a twoway connected graph on Stata. But even though there is no year 2022 in my dataset, it automatically adds the year 2022.
Here, the code:
twoway (connected usasecurity Year) (connected usaeconomic Year) (connected usadevhum Year)
or
twoway (connected usasecurity Year) (connected usaeconomic Year) (connected usadevhum Year) if Year<2022
Even if I do it by using a conditional (Year<2022), it still gives me the graph with 2022. How can I solve this problem.
Thank you so much, Best,
Comment