Dear colleagues, my first post here so apologies if I'm doing it wrong.

I always use Royston's mcp (marginscontplot) command to produce my graphs.

But this time I get the following error:

Code:
There was a problem executing -margins-.
The command issued was essentially as follows:
margins , at( cp_predict2=( 0 2 4 6 8 10 12 14 16 18 20) director_totco=( 1 4))
r(322);
What I ran was the following:
Code:
xtlogit f.newODdum cp_predict2 independent_num total_news_cpceo politcon roa_w pb_2y_w lnTobQ1_w ceo_age ceo_tenure duality director_totco c.cp_predict2#c.independent_num c.cp_predict2#c.ceo_tenure c.cp_predict2#c.director_totco i.year, fe
Followed by:
Code:
mcp cp_predict2 director_totco, at1(0(2)20) at2(1 4) plotopts(scheme(sj))
FWIW, I pick those values because that is the meaningful range of x (at1) and -1/+1 SD for the moderator. But it doesn't matter what values I enter for at1/var1 at2; Stata returns (some variation of) the error reported at the top of the post. But normally mcp works fine for me. Scouring the internet did not help and the r322 error just says "something went wrong". Duh.

Any ideas? I'm sure I'm overlooking something obvious.
Thanks in advance.