Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: plotting a regression function with time-dummies indicating structural breaks


From   Oliver Jones <[email protected]>
To   [email protected]
Subject   st: plotting a regression function with time-dummies indicating structural breaks
Date   Tue, 03 May 2011 11:10:43 +0200

Hi everybody,
I wonder if there is an easy way to plot a regression of the form:

y_t = b_0 + b_1*TIME_t + Dummy_1*(b_2 + b_3*TIME_t) + b_4*Dummy_2

So far I tried:
gen x = TIME_t
twoway ///
	(tsline y) ///
	(function y = b_0 + b_1*x + Dummy_1*(b_2 + b_3*x) + b_4*Dummy_2, ///
		range(`first_year' `last_year'))

I seem to have a problem with the range, because the resulting graph just
covers one third of the graph. But the shape seems to look ok, just
compressed.

Hopefully there is a nice way of plotting such stuff without the -function-
command or some one has a hint regarding the range problem.

Kind regards
Oliver
--
Universität Bielefeld
Fakultät für Wirtschaftswissenschaften
Lehrstuhl für Ökonometrie und Statistik
- -
Bielefeld University
Faculty of Business Administration and Economics
Chair of Econometrics and Statistics
- -
Raum / room:  V9-110
Tel / phone:  +49 (0)521 106 4871
---
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index