Hi,
For the stata 10 code, one problem might be that Stata isnot finding the library. When you open up Stata, try running thefollowing line of code:mata: mata mlib query(with the colon and double-mata and everything) This should list somelibraries all starting with the letter l ("el"). One of the should be"lcem." If it isn't, try running this line of code (which may take abit):mata: mata mlib indexHopefully now you should see "lcem." The program should work afterthis. If this does not work, I have a few more ideas, but I think thisshould resolve the issue.For Stata 12, I think you have combined two separate commands. You want to run everything before "reg". Should be the same command as in Stata 10.Please let me know if this does not help.cheers,matt.~~~~~~~~~~~Matthew BlackwellPhD CandidateInstitute for Quantitative Social ScienceDepartment of GovernmentHarvard UniversityOn Friday, June 29, 2012 at 3:55 PM, Katelyn Sack wrote:
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 foundr(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 foundr(111);Any other ideas how to troubleshoot?Thanks and best,KatelynOn 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. candidateUniversity of Virginia
---cem Mailing List, served by HUITSend messages: cem@lists.gking.harvard.edu[un]subscribe Options: http://lists.gking.harvard.edu/?info=cemMore information on cem: http://gking.harvard.edu/cemCem mailing list
--Katelyn Sack, Ph.D. candidateUniversity of Virginia