Hi Matt & all, 

Thanks. My bad - that was a "replicating my error" error. Fixing it generates the following errors: 
cem AGCYTYPE POPULATION region lblackproportion, tr(POLYEXAM)
 <istmt>:  3499  cemStata() not found
r(3499);
(Stata 10 still seems to get stuck trying to find cem.)

And the same error as before in Stata 12:
cem AGCYTYPE POPULATION region lblackproportion, tr(POLYEXAM)
reg lblackproportion POLYEXAM YP YEAR [iweight=cem_weights]
cem_weights not found
r(111);

Any other ideas how to troubleshoot?

Thanks and best, 
Katelyn


On Fri, Jun 29, 2012 at 6:38 PM, Matt Blackwell <blackwel@fas.harvard.edu> wrote:
Hi Katelyn,

Without taking too close a look, I think that the problem with the Stata 10 code is the space between "tr" and "(". It should be "tr(POLYEXAM)". That might also be the problem in Stata 12. 

Cheers,
Matt. 

On Friday, June 29, 2012 at 1:39 PM, Katelyn Sack wrote:

Dear list, 

When I try using cem in Stata 10, I get the error "no variables defined in option treatment(), r(111);" even though my syntax looks fine. (My command was "cem  AGCYTYPE POPULATION region lblackproportion, tr (POLYEXAM).") The website indicates it works in version 10. 

When I try using it in Stata 12, I think the program gets a little farther. But I still get the error "cem_weights not found" after the commands:
cem  AGCYTYPE POPULATION region lblackproportion, tr (POLYEXAM)
reg lblackproportion POLYEXAM YP YEAR [iweight=cem_weights]

Any ideas how to troubleshoot? My best guess is that I skipped important pre-cem steps and the program is protesting that sort of human error. Perhaps the matched N (672) is too small and so I should simulate more data to produce more matches?

Many thanks, 
Katelyn

--
Katelyn Sack, Ph.D. candidate
University of Virginia 

-
--
cem Mailing List, served by HUIT
More information on cem: http://gking.harvard.edu/cem
Cem mailing list




--
Katelyn Sack, Ph.D. candidate
University of Virginia