Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Richard Williams <richardwilliams.ndu@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: Testing interaction terms when using factor variables |
Date | Thu, 27 Oct 2011 16:32:41 -0500 |
----------- use "http://www.indiana.edu/~jslsoc/stata/spex_data/tenure01.dta";, clearquietly logit tenure i.female year c.year#c.year select articles prestige i.female#(c.year c.year#c.year c.select c.articles c.prestige)
test 1.female#c.year 1.female#c.year#c.year 1.female#c.select 1.female#c.articles 1.female#c.prestige
test 1.female#(c.year c.year#c.year c.select c.articles c.prestige) -----------The first test command, where I spell out each interaction separately, works fine. But, with the second test command, I get
invalid varname r(198);You would think there would be some sort of shorthand way of doing this, but if so I can't figure out what it is.
------------------------------------------- Richard Williams, Notre Dame Dept of Sociology OFFICE: (574)631-6668, (574)631-6463 HOME: (574)289-5227 EMAIL: Richard.A.Williams.5@ND.Edu WWW: http://www.nd.edu/~rwilliam * * 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/