Dear Mr Bierlaire,
I'm estimating a Panel Mixed Logit model, in which I've made all the parameters random. An example of such a parameter is shown below.
B_MOPEDCOST = Beta('B_MOPEDCOST', -0.32, None, None, 0)
B_MOPEDCOST_S = Beta('B_
MOPEDCOST_S', 1, None, None, 0)
B_
MOPEDCOST_RND = B_
MOPEDCOST + B_
MOPEDCOST_S * bioDraws('B_MOPEDCOST_RND', 'NORMAL_ANTI')
Now I'd like to include interaction effects between every parameter (attributes and ASC's) and one respondent characteristic (a dummy coded variable, 0 and 1). I'm not sure how to include this. My initial idea was to define a parameter for each interaction effect, like this:
B_MOPEDCOST_EXP = Beta('B_MOPEDCOST_EXP', 0, None, None, 0)
and to include them in the utility functions like shown for one parameter below. The interaction effect is in bold:
V1 = ASC_MOPED_RND + \
B_ACCESSTIME_RND * MOPED_ACCESS + \
B_MOPEDCOST_RND * MOPED_COST + \
B_AVTIMELINEAR_RND * MOPED_AVAILABILITY + \
B_AVTIMEQ_RND * MOPED_AVAILABILITY**2 + \
B_MOPEDCOST_EXP * MOPED_COSTS * EXP
So first define the random parameter, use that in the utility function and then separately add the interaction effect which is multiplied by the original parameter (no _RND) and the dummy. My supervisor thought that maybe I should include the interaction effects before I make the parameters random, so for example:
B_MOPEDCOST_RND = B_MOPEDCOST + B_MOPEDCOST_EXP * EXP + B_MOPEDCOST_S * biodraws
After which the utility function would be:
V1 = ASC_MOPED_RND + \
B_ACCESSTIME_RND * MOPED_ACCESS + \
B_MOPEDCOST_RND * MOPED_COST + \
B_AVTIMELINEAR_RND * MOPED_AVAILABILITY + \
B_AVTIMEQ_RND * MOPED_AVAILABILITY**2
He wasn't sure about this though. What do you think?
Thanks in advance!