Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • FMM error

    I have the following estimation command using fmm:

    > fmm 3: regress $Y $T $X

    where $Y $X and $T are well defined and understood by Stata. I know this because when I run reg $Y $T $X, it runs fine.

    I get this error:

    invalid varname
    st_matrixcolstripe(): 3300 argument out of range
    _gsem_build__cnsopt(): - function returned error
    _gsem_build(): - function returned error
    _gsem_parse(): - function returned error
    st_gsem_parse(): - function returned error
    <istmt>: - function returned error

    The other interesting thing is if I run the SAME model from the command window and not in a do-file, it runs fine.

    Any help appreciated.

    Christian

  • #2
    Originally posted by Christian Bayes View Post
    I have the following estimation command using fmm:

    > fmm 3: regress $Y $T $X

    where $Y $X and $T are well defined and understood by Stata. I know this because when I run reg $Y $T $X, it runs fine.

    I get this error:

    invalid varname
    st_matrixcolstripe(): 3300 argument out of range
    _gsem_build__cnsopt(): - function returned error
    _gsem_build(): - function returned error
    _gsem_parse(): - function returned error
    st_gsem_parse(): - function returned error
    <istmt>: - function returned error

    The other interesting thing is if I run the SAME model from the command window and not in a do-file, it runs fine.

    Any help appreciated.

    Christian
    I'd suggest sending a log file with the error to Stata technical support. This is not a particularly informative error message. The first line indicates that something passed to mata has submitted in incorrect value, e.g. asking for the 6th row of a 5x5 matrix. It's not clear why this error would crop up with the fmm prefix and only in a do file.

    As a side note, had you tried setting the variables as local macros rather than global?
    Be aware that it can be very hard to answer a question without sample data. You can use the dataex command for this. Type help dataex at the command line.

    When presenting code or results, please use the code delimiters format them. Use the # button on the formatting toolbar, between the " (double quote) and <> buttons.

    Comment

    Working...
    X