Greetings,
I'm running Stata 15.1 on OSX. I'm conducting a basic content analysis on New York Times articles (1980-2019) that I pulled from LexisNexis. The variables in this dataset all store the percent of total NYT articles in a given year that mention a specific term or phrase. I'd like to examine whether, over time, the percent of annual articles mentioning term X increasingly predict the percent of articles that mention Z. I thus estimated the following OLS model and received the following output:
As shown, all the estimates for the interaction term were omitted. What's going on here and how do I resolve it?
Here is some sample data:
Thanks in advance for your help!
I'm running Stata 15.1 on OSX. I'm conducting a basic content analysis on New York Times articles (1980-2019) that I pulled from LexisNexis. The variables in this dataset all store the percent of total NYT articles in a given year that mention a specific term or phrase. I'd like to examine whether, over time, the percent of annual articles mentioning term X increasingly predict the percent of articles that mention Z. I thus estimated the following OLS model and received the following output:
Code:
. regress WSPC_YEAR c.WHITEPC_YEAR##i.year note: 2019.year omitted because of collinearity note: 1981.year#c.WHITEPC_YEAR omitted because of collinearity note: 1982.year#c.WHITEPC_YEAR omitted because of collinearity note: 1983.year#c.WHITEPC_YEAR omitted because of collinearity note: 1984.year#c.WHITEPC_YEAR omitted because of collinearity note: 1985.year#c.WHITEPC_YEAR omitted because of collinearity note: 1986.year#c.WHITEPC_YEAR omitted because of collinearity note: 1987.year#c.WHITEPC_YEAR omitted because of collinearity note: 1988.year#c.WHITEPC_YEAR omitted because of collinearity note: 1989.year#c.WHITEPC_YEAR omitted because of collinearity note: 1990.year#c.WHITEPC_YEAR omitted because of collinearity note: 1991.year#c.WHITEPC_YEAR omitted because of collinearity note: 1992.year#c.WHITEPC_YEAR omitted because of collinearity note: 1993.year#c.WHITEPC_YEAR omitted because of collinearity note: 1994.year#c.WHITEPC_YEAR omitted because of collinearity note: 1995.year#c.WHITEPC_YEAR omitted because of collinearity note: 1996.year#c.WHITEPC_YEAR omitted because of collinearity note: 1997.year#c.WHITEPC_YEAR omitted because of collinearity note: 1998.year#c.WHITEPC_YEAR omitted because of collinearity note: 1999.year#c.WHITEPC_YEAR omitted because of collinearity note: 2000.year#c.WHITEPC_YEAR omitted because of collinearity note: 2001.year#c.WHITEPC_YEAR omitted because of collinearity note: 2002.year#c.WHITEPC_YEAR omitted because of collinearity note: 2003.year#c.WHITEPC_YEAR omitted because of collinearity note: 2004.year#c.WHITEPC_YEAR omitted because of collinearity note: 2005.year#c.WHITEPC_YEAR omitted because of collinearity note: 2006.year#c.WHITEPC_YEAR omitted because of collinearity note: 2007.year#c.WHITEPC_YEAR omitted because of collinearity note: 2008.year#c.WHITEPC_YEAR omitted because of collinearity note: 2009.year#c.WHITEPC_YEAR omitted because of collinearity note: 2010.year#c.WHITEPC_YEAR omitted because of collinearity note: 2011.year#c.WHITEPC_YEAR omitted because of collinearity note: 2012.year#c.WHITEPC_YEAR omitted because of collinearity note: 2013.year#c.WHITEPC_YEAR omitted because of collinearity note: 2014.year#c.WHITEPC_YEAR omitted because of collinearity note: 2015.year#c.WHITEPC_YEAR omitted because of collinearity note: 2016.year#c.WHITEPC_YEAR omitted because of collinearity note: 2017.year#c.WHITEPC_YEAR omitted because of collinearity note: 2018.year#c.WHITEPC_YEAR omitted because of collinearity note: 2019.year#c.WHITEPC_YEAR omitted because of collinearity Source | SS df MS Number of obs = 142,231 -------------+---------------------------------- F(39, 142191) = . Model | 55505.9797 39 1423.23025 Prob > F = . Residual | 0 142,191 0 R-squared = 1.0000 -------------+---------------------------------- Adj R-squared = 1.0000 Total | 55505.9797 142,230 .390255078 Root MSE = 0 ------------------------------------------------------------------------------------- WSPC_YEAR | Coef. Std. Err. t P>|t| [95% Conf. Interval] --------------------+---------------------------------------------------------------- WHITEPC_YEAR | 3.321562 . . . . . | year | 1981 | .2738851 . . . . . 1982 | .5414511 . . . . . 1983 | .3368037 . . . . . 1984 | .3480026 . . . . . 1985 | -.1165383 . . . . . 1986 | .0544986 . . . . . 1987 | -.1245103 . . . . . 1988 | -.289388 . . . . . 1989 | -.5340557 . . . . . 1990 | -.8089314 . . . . . 1991 | -.3684183 . . . . . 1992 | -.5237221 . . . . . 1993 | .0391256 . . . . . 1994 | -.1221813 . . . . . 1995 | .4550614 . . . . . 1996 | .7422796 . . . . . 1997 | 1.033317 . . . . . 1998 | .8154973 . . . . . 1999 | 1.009021 . . . . . 2000 | .5087013 . . . . . 2001 | .9019873 . . . . . 2002 | 1.017792 . . . . . 2003 | 1.065856 . . . . . 2004 | 1.180784 . . . . . 2005 | 1.084137 . . . . . 2006 | 1.09677 . . . . . 2007 | 1.118167 . . . . . 2008 | .5535289 . . . . . 2009 | 1.267848 . . . . . 2010 | 1.119098 . . . . . 2011 | 1.154076 . . . . . 2012 | 1.070433 . . . . . 2013 | 1.076881 . . . . . 2014 | .6158266 . . . . . 2015 | .7174238 . . . . . 2016 | -.8348896 . . . . . 2017 | .4079323 . . . . . 2018 | -.5526747 . . . . . 2019 | 0 (omitted) | year#c.WHITEPC_YEAR | 1981 | 0 (omitted) 1982 | 0 (omitted) 1983 | 0 (omitted) 1984 | 0 (omitted) 1985 | 0 (omitted) 1986 | 0 (omitted) 1987 | 0 (omitted) 1988 | 0 (omitted) 1989 | 0 (omitted) 1990 | 0 (omitted) 1991 | 0 (omitted) 1992 | 0 (omitted) 1993 | 0 (omitted) 1994 | 0 (omitted) 1995 | 0 (omitted) 1996 | 0 (omitted) 1997 | 0 (omitted) 1998 | 0 (omitted) 1999 | 0 (omitted) 2000 | 0 (omitted) 2001 | 0 (omitted) 2002 | 0 (omitted) 2003 | 0 (omitted) 2004 | 0 (omitted) 2005 | 0 (omitted) 2006 | 0 (omitted) 2007 | 0 (omitted) 2008 | 0 (omitted) 2009 | 0 (omitted) 2010 | 0 (omitted) 2011 | 0 (omitted) 2012 | 0 (omitted) 2013 | 0 (omitted) 2014 | 0 (omitted) 2015 | 0 (omitted) 2016 | 0 (omitted) 2017 | 0 (omitted) 2018 | 0 (omitted) 2019 | 0 (omitted) | _cons | -2.465472 . . . . . -------------------------------------------------------------------------------------
Here is some sample data:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(WSPC_YEAR WHITEPC_YEAR year) .9925123 1.0393106 1980 .8585935 .889102 1981 .8551458 .7576681 1982 .8682891 .8493891 1983 .7799819 .8421696 1984 .8046948 1.0830024 1985 .9286741 .9659038 1986 .7952349 1.059963 1987 .893328 1.0757904 1988 .9505889 1.1528882 1989 1.0103576 1.247764 1990 .8976109 1.1285552 1991 .9410325 1.204068 1992 .892553 1.0299592 1993 1.0238991 1.04965 1994 .9579538 .9249209 1995 .9319496 .7980101 1996 .9725213 .7164902 1997 1.1973426 .7693729 1998 .9383616 .7384797 1999 .9658987 .8353717 2000 .8934433 .7107584 2001 .8972512 .664284 2002 .9895188 .635982 2003 1.1008787 .5841192 2004 1.0499339 .6417411 2005 1.0944157 .6180353 2006 1.1638317 .620284 2007 1.0603167 .8075929 2008 1.0753922 .6335288 2009 1.0665824 .6547699 2010 1.241938 .639901 2011 1.278908 .6912675 2012 1.4445844 .7267002 2013 1.4135656 .8899446 2014 1.4643455 .9122679 2015 1.49988 1.475882 2016 2.0604258 1.404532 2017 2.2694461 1.6083313 2018 2.596925 1.61524 2019 . . . end
Comment