Basically clarify works with interactions by not working with them. That
is, clarify as programmed doesn't "know" you have interactions. But you
can create a variable x1*x2 by multilpying the two and taking the product
and giving it to clarify. As long as you setx the variables properly (so
that x1x2 is really the product of the values you set for x1 and x2)
everything will work properly.
Gary
: Gary King, King(a)Harvard.Edu
http://GKing.Harvard.Edu :
: Center for Basic Research Direct (617) 495-2027 :
: in the Social Sciences Assistant (617) 495-9271 :
: 34 Kirkland Street, Rm. 2 HU-MIT DC (617) 495-4734 :
: Harvard U, Cambridge, MA 02138 eFax (928) 832-7022 :
On Fri, 15 Aug 2003 mrcleary(a)uchicago.edu wrote:
Dear Clarify Support,
I would be very grateful if you could offer advice on the following problem.
I cannot figure out how to get clarify to return expected values for a simple
model with an interaction term.
I am modeling government responsiveness (continuous, [0,1]) as a function of a
competitive electoral environment (a dummy, 1=competitive) and literacy
(continuous, [0,1]). Each observation is a municipality. I expect both
variables to have a positive effect on responsiveness; but I also expect
literacy to have a greater effect when coupled with electoral competition, so
I interact the two variables.
The Clarify documentation explains how to hold this interaction term at its
median, while simulating other values of interest. But I need to manipulate
the interaction term itself. I'm trying to produce two variables: one is the
expected value of responsiveness when competition=0, and another when
competition=1.
For the first variable, the setx command provides an easy solution:
local a=1
while `a'<=99 {
setx competition 0 literacy p`a' interaction 0
simqi ....
genev ....
--
Clarify mailing list served by Harvard-MIT Data Center
[Un]Subscribe/View Archive:
http://lists.hmdc.harvard.edu/?info=clarify
--
Clarify mailing list served by Harvard-MIT Data Center
[Un]Subscribe/View Archive:
http://lists.hmdc.harvard.edu/?info=clarify