Hi Andrew, 

Does CEM work if you remove the "if" statement? If so, you can probably get around this bug by dropping the missing treatment variables before performing the matching. 

Hope that helps!

Cheers,
Matt

~~~~~~~~~~~
Matthew Blackwell
Assistant Professor of Government
Harvard University
url: http://www.mattblackwell.org

On Mon, Apr 27, 2015 at 9:46 AM Spiegelman, Andrew <Andrew.Spiegelman@va.gov> wrote:

Dear CEM List,

 

I am attempting to run cem in Stata MP 14:

cem months (#15) if laac_none_base50p!=., treatment(laac_none_base50p) show

 

I get the following error:

              cemStata():  3301  subscript invalid

                 <istmt>:     -  function returned error

r(3301);

 

 

My data:

479,808 observations

months ranges from 1-156 and is a real number

laac_none_base50p is either 0 (n=1,140) or 1 (n=472,312)

 

Please help; I can’t find any support for this error.

 

 

Andrew

 

-
--
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

To unsubscribe from this list or get other information:

https://lists.gking.harvard.edu/mailman/listinfo/cem