Hello all. I'm a professor at Baldwin Wallace. On Thursday, I tried to run a lab with my class from Pollock's Stata Companion (Chapter 6) to compare means. This lab runs fine in Stata v. 15, but it will not run in Stata v. 16.
This is the command
lincom [egal_scale]Male - [egal_scale]Female
It runs perfectly fine in Stata 15, which I have on my home computer (see below).
When I run it in Stata 16, I get an error message that says the variable was not recognized as an equation. All my students ran into this problem, too.
Needless to say, it was a little embarrassing, and 'googling' the error isn't doing the trick.
Any suggestions?
Thank you!
-Lauren
. mean egal_scale [pw=nesw], over(female)
Mean estimation Number of obs = 5,456
Male: female = Male
Female: female = Female
--------------------------------------------------------------
Over | Mean Std. Err. [95% Conf. Interval]
-------------+------------------------------------------------
egal_scale |
Male | 13.69738 .1288302 13.44482 13.94993
Female | 14.44775 .1250026 14.2027 14.69281
--------------------------------------------------------------
.
. lincom [egal_scale]Male - [egal_scale]Female
( 1) [egal_scale]Male - [egal_scale]Female = 0
------------------------------------------------------------------------------
Mean | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
(1) | -.7503768 .1795073 -4.18 0.000 -1.102283 -.3984709
------------------------------------------------------------------------------
Related Posts with Syntax for lincom won't work in Stata 16 but works fine in Stata 15
Current and Lagged Values of an Independent Variable in xtabond2Hi everyone! May I ask if it is technically correct to include both current and lagged values of an …
Regression based for different time periods based on a conditionDear Stata Users Yesterday I posted a question under the head, "Regression-based on different time p…
Attempting to create a histogram with logarithmic axesHello, I am attempting to create a frequency histogram of a variable (called M) with a logarithmic …
how to control for individual fixed effects in Stata?I know one method can be: Code: regress y x1 x2 i.id, vce(robust) But the problem is in my data set…
Creating a sum variable which depends on 2 other variablesHello! I am currently working on a panel dataset containing, amongst others, the variables "compani…
Subscribe to:
Post Comments (Atom)
0 Response to Syntax for lincom won't work in Stata 16 but works fine in Stata 15
Post a Comment