Dear all,
I am estimating the following model:
I have estimated the marginal predicted mean across values of lfirstp for two values of the variable vote_share (1 and 51) using the margins command.
What I want to do next is to estimate the difference in the predicted mean (and the corresponding statistical significance of the difference) for values vote share 1 and 51 at different values of lfirstp. I thought something like this would work.
However, trying to estimate this leads to the following error:
Do you have any idea about how I could do this?
Thanks!
I am estimating the following model:
Code:
melogit tradeoff c.vote_share##c.lfirstp || cntrynum: vote_share
Code:
margins, at(lfirstp=(-2.4(2)2.4) vote_share=(1 51))
Code:
margins r1.vote_share#r51.vote_share, at(lfirstp=(-2.4(.4)2.4)) level(95)
Code:
vote_share: factor variables may not contain noninteger values
Thanks!
Comment