Error with mplus2lavaan: v_post.match[1L] > 0 is not TRUE

134 views
Skip to first unread message

Jon

unread,
May 25, 2015, 10:23:04 AM5/25/15
to lav...@googlegroups.com
From what I can tell from the comments written in around line 68 here, this error has something to do with how model constraints are specified in the Mplus syntax file, where the use of hyphens (e.g., x1-x3* instead of x1* x2* x3*) confuses lavaan. I have over 2 million Mplus syntax files that I'd rather not rewrite. Is there a way around this error? I've attached an example of my syntax. Thanks!
popmod1_fitmod1_estimML_n0100_j9_dc1_r0001.inp

Jon

unread,
May 25, 2015, 10:26:03 AM5/25/15
to lav...@googlegroups.com
Sorry, forgot to give details of my system. See below, and I'm running lavaan version 0.5-18

> Sys.getenv()
ALLUSERSPROFILE         C:\ProgramData
APPDATA                 C:\Users\jlehrfeld\AppData\Roaming
CommonProgramFiles      C:\Program Files\Common Files
CommonProgramFiles(x86)
                        C:\Program Files (x86)\Common Files
CommonProgramW6432      C:\Program Files\Common Files
COMPUTERNAME            WIN-D97J49Z1
ComSpec                 C:\Windows\system32\cmd.exe
DellClientSystemUpdatePath
                        C:\Program Files (x86)\Dell\ClientSystemUpdate\
FP_NO_HOST_CHECK        NO
HOME                    C:\Users\jlehrfeld\Documents\R
HOMEDRIVE               C:
HOMEPATH                \Users\jlehrfeld
JAVA_HOME               C:\Program Files\Java\jre1.8.0_45
LC_NUMERIC              C
LDMS_LOCAL_DIR          C:\Program Files (x86)\LANDesk\LDClient\Data
LOCALAPPDATA            C:\Users\jlehrfeld\AppData\Local
LOGONSERVER             \\DS-DC05
NUMBER_OF_PROCESSORS    8
OS                      Windows_NT
PATH                    C:\R\R-3.2.0\bin\x64;C:/Program
                        Files/Java/jre1.8.0_45/bin/server;C:/Program
                        Files/Java/jre1.8.0_45/bin;C:/Program
                        Files/Java/jre1.8.0_45/lib/amd64;c:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program
                        Files\Common Files\Microsoft Shared\Windows
                        Live;C:\Program Files (x86)\Common
                        Files\Microsoft Shared\Windows Live;C:\Program
                        Files (x86)\Intel\iCLS Client\;C:\Program
                        Files\Intel\iCLS
                        Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
                        Files\Intel\Intel(R) Management Engine
                        Components\DAL;C:\Program Files\Intel\Intel(R)
                        Management Engine Components\IPT;C:\Program
                        Files (x86)\Intel\Intel(R) Management Engine
                        Components\DAL;C:\Program Files
                        (x86)\Intel\Intel(R) Management Engine
                        Components\IPT;C:\Program Files (x86)\Windows
                        Live\Shared;C:\Program
                        Files\SASHome\Secure;C:\Program
                        Files\SASHome\x86\Secure;C:\Program
                        Files\Mplus\;C:\Program Files
                        (x86)\Java\jre1.8.0_40\bin\client;C:\eclipse;
PATHEXT                 .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
                        AMD64
PROCESSOR_IDENTIFIER    Intel64 Family 6 Model 60 Stepping 3,
                        GenuineIntel
PROCESSOR_LEVEL         6
PROCESSOR_REVISION      3c03
ProgramData             C:\ProgramData
ProgramFiles            C:\Program Files
ProgramFiles(x86)       C:\Program Files (x86)
ProgramW6432            C:\Program Files
PROMPT                  $P$G
PSModulePath            C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC                  C:\Users\Public
R_ARCH                  /x64
R_DOC_DIR               C:\R\R-3.2.0\doc
R_HOME                  C:/R/R-3.2.0
R_INCLUDE_DIR           C:\R\R-3.2.0\include
R_KEEP_PKG_SOURCE       yes
R_LIBS                  
R_LIBS_SITE             C:\R\R-3.2.0\site-library
R_LIBS_USER             \\ds.fordham.edu\DFS\Users\jlehrfeld\My
                        Documents\R\win-library\3.2
R_SHARE_DIR             C:\R\R-3.2.0\share
R_USER                  C:\Users\jlehrfeld\Documents\R
SESSIONNAME             Console
SystemDrive             C:
SystemRoot              C:\Windows
TCLLIBPATH              C:/R/R-3.2.0/Tcl/lib64
TEMP                    C:\Users\JLEHRF~1\AppData\Local\Temp
TMP                     C:\Users\JLEHRF~1\AppData\Local\Temp
USERDNSDOMAIN           DS.FORDHAM.EDU
USERDOMAIN              FORDHAM
USERNAME                jlehrfeld
USERPROFILE             C:\Users\jlehrfeld
windir                  C:\Windows
windows_tracing_flags   3
windows_tracing_logfile            C:\BVTBin\Tests\installpackage\csilogfile.log

Yves Rosseel

unread,
Jun 11, 2015, 11:31:22 AM6/11/15
to lav...@googlegroups.com
The author of the mplus2lavaan() function is Michael Hallquist
(http://www.psychiatry.pitt.edu/node/8545)

I would contact him directly, and maybe, he may find the time to solve
this...

Yves.

On 05/25/2015 04:23 PM, Jon wrote:
> From what I can tell from the comments written in around line 68 here
> <https://github.com/yrosseel/lavaan/blob/master/R/ctr_mplus2lavaan.R>,
> this error has something to do with how model constraints are specified
> in the Mplus syntax file, where the use of hyphens (e.g., x1-x3* instead
> of x1* x2* x3*) confuses lavaan. I have over 2 million Mplus syntax
> files that I'd rather not rewrite. Is there a way around this error?
> I've attached an example of my syntax. Thanks!
>
> --
> You received this message because you are subscribed to the Google
> Groups "lavaan" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to lavaan+un...@googlegroups.com
> <mailto:lavaan+un...@googlegroups.com>.
> To post to this group, send email to lav...@googlegroups.com
> <mailto:lav...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/lavaan.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages