Or, I should say, it worked when I dropped the missing observations; not the variables.

 

 

Andrew

 

 

 

From: cem-bounces@lists.gking.harvard.edu [mailto:cem-bounces@lists.gking.harvard.edu] On Behalf Of Spiegelman, Andrew
Sent: Monday, April 27, 2015 9:52 AM
To: 'Matt Blackwell'; cem@lists.gking.harvard.edu
Subject: Re: [cem] [EXTERNAL] Re: Stata cem r(3301)

 

Indeed that does seem to work. Thanks for the help and thanks for great software.

 

 

Andrew

 

 

 

From: Matt Blackwell [mailto:mblackwell@gov.harvard.edu]
Sent: Monday, April 27, 2015 9:49 AM
To: Spiegelman, Andrew; cem@lists.gking.harvard.edu
Subject: [EXTERNAL] Re: [cem] Stata cem r(3301)

 

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