Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: cannot open .stsem file


From   [email protected] (Jeff Pitblado, StataCorp LP)
To   [email protected]
Subject   Re: st: cannot open .stsem file
Date   Fri, 13 Sep 2013 17:07:07 -0500

Jeremy Reynolds <[email protected]> is getting a Mata runtime error when
opening an stsem-file he created in the SEM Builder.

A bug similar to what Jeremy describes was fixed in the 11may2012 update to
Stata 12.  If Jeremy is using Stata 12, we encourage Jeremy to verify that his
Stata 12 is fully up-to-date.

If Jeremy's Stata 12 is fully up-to-date or Jeremy is using Stata 13, then
this is a bug, but we need help reproducing the problem.  In this case, we
encourage Jeremy to send the offending stsem-file and a dataset with
instructions on how to reproduce the problem to Tech Support at

	[email protected]

--Jeff
[email protected]

> I made a SEM model using the equation builder, and then saved it as a
> .stsem file.  The model runs fine both from the .stsem file and from a
> do-file (I have pasted the code that Stata echoes in the output window
> below).  However, when I close and then attempt to re-open the .stsem
> file, I get the error message below.  Does anyone know what is
> happening?
> 
> This model is based on Paul Allison's SEM version of a cross-lagged
> panel model with fixed effects.
> http://www.statisticalhorizons.com/wp-content/uploads/2012/01/Causal-Inference.pdf
> 
> Thanks,
> 
> Jeremy
> 
> #delimit ;
> sem (mcsr2008@c2 -> mcsr2010) (mcsr2006@c2 -> mcsr2008) (mcsr2004@c2
> -> mcsr2006)
> (hrmmwf2004@c1 -> mcsr2006) (hrmmwf2006@c1 -> mcsr2008) (hrmmwf2008@c1
> -> mcsr2010)
> (A@1 -> mcsr2008) (A@1 -> mcsr2006) (A@1 -> mcsr2010) (B@1 -> mcsr2006),
> covstruct(_lexogenous,diagonal) cov(_lexogenous*_oexogenous@0)
> method(mlmv) latent(A B )
> cov( e.mcsr2006@0
> hrmmwf2004*mcsr2004 hrmmwf2006*mcsr2004 hrmmwf2008*mcsr2004
> hrmmwf2006*hrmmwf2004 hrmmwf2008*hrmmwf2004 hrmmwf2008*hrmmwf2006
> A*mcsr2004 A*hrmmwf2004 A*hrmmwf2006 A*hrmmwf2008 B*hrmmwf2008) nocapslatent;
> #delimit cr
> 
> 
> . sg__model::SelectionsDlg():  3010  attempt to dereference NULL pointer
>    sg__model::Selected():     -  function returned error
>    sg__model::doaction():     -  function returned error
> sg__actionlog::perform():     -  function returned error
>     sg__actionlog::run():     -  function returned error
>      sg__model::runlog():     -  function returned error
>        sg__model::Open():     -  function returned error
>      sg__model::signal():     -  function returned error
> sg__globalclass::signal():     -  function returned error
>                  <istmt>:     -  function returned error
> r(3010);
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index