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
Send messages: cem@lists.gking.harvard.edu
[un]subscribe Options: http://lists.gking.harvard.edu/?info=cem
More information on cem: http://gking.harvard.edu/cem
Cem mailing list
Cem@lists.gking.harvard.edu
https://lists.gking.harvard.edu/mailman/listinfo/cem