I have used the "margins" command successfully earlier, but now run into an error every time I try to employ it. I use Stata 16.
As an example, this happens when I try to reproduce the first example given in the margins help file:
Stata gives the same error every time I use the margins command.
Experience tells me that Stata is right and I did something wrong when something is not working, but I struggle to see any errors here. Any idea what is going on?
As an example, this happens when I try to reproduce the first example given in the margins help file:
Code:
. webuse margex, clear (Artificial data for margins) . regress y i.sex i.group Source | SS df MS Number of obs = 3,000 -------------+---------------------------------- F(3, 2996) = 152.06 Model | 183866.077 3 61288.6923 Prob > F = 0.0000 Residual | 1207566.93 2,996 403.059723 R-squared = 0.1321 -------------+---------------------------------- Adj R-squared = 0.1313 Total | 1391433.01 2,999 463.965657 Root MSE = 20.076 ------------------------------------------------------------------------------ y | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- sex | female | 18.32202 .8930951 20.52 0.000 16.57088 20.07316 | group | 2 | 8.037615 .913769 8.80 0.000 6.245937 9.829293 3 | 18.63922 1.159503 16.08 0.000 16.36572 20.91272 | _cons | 53.32146 .9345465 57.06 0.000 51.48904 55.15388 ------------------------------------------------------------------------------ . . margins sex invalid syntax r(198);
Experience tells me that Stata is right and I did something wrong when something is not working, but I struggle to see any errors here. Any idea what is going on?
Comment