Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: Interaction term with categorical variables and no. of observations stepwise regressions


From   Marcel Steinter <makromario2003@yahoo.de>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Interaction term with categorical variables and no. of observations stepwise regressions
Date   Tue, 31 Jul 2012 10:39:58 +0100 (BST)

Dear research colleagues,
 
I hope you are doing fine. Since, I
received a lot of divergent responses when discussing internally, I would have
a question with regard to the following two issues:
 
I have a panel data set (bond price - years)
with 3 time periods of interest in my data (coded with 2 dummy variables). In
addition to potentially including these 2 dummies I am also interested in
interaction effects, in particular I would expect the influence of my main
independent variable to be higher in the third period. I therefore include the
interaction main independent variable x dummy for period 3 in my regression.
 
Do I also need to include the interaction
of the main independent variable x dummy for period 2 in my regressions (as for
normal dummies when all have to be included). I would assume that I definitely
have to include the main effect dummies 1+2.
 
I have some missing values and want to run
several models and stepwise add variables to the regression. Do I also have to
have the same number of observations for all models? Obviously, the more
variables are added the more observations have missing values for some
variables and are dropped. Or can I use the full number of observations for
each model, resulting in higher number of observations for models with less
variables?
 
Best regards,
 
Marcel

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index