Announcement

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

  • Conformability error in gidm command

    Hello everyone,

    I have been trying to use the regression command GIDM and this error keeps appearing every time I add one new variable to the inflation part of the model.

    In the following table, you can find the description of the variables I use:

    Code:
      Variable |        Obs        Mean    Std. dev.       Min        Max
    -------------+---------------------------------------------------------
             d_i |     21,889     .128375    .4305402          0          4
    N_retirincap |     21,889     .512769    .8369079          0         10
            area |     21,889    .7785189    .4152531          0          1
        nadultos |     21,889    2.084289    .9797261          1         12
        nmenores |     21,889     .325506    .7024319          0          9
    -------------+---------------------------------------------------------
          income |     21,766    2.612607    1.377871          1          5
          h_educ |     21,889    1.824432    .9126781          0          3
            CCAA |     21,889    8.915209    5.012314          1         19
    health_per~n |     21,889    2.182923    .9065323          1          5
    then the command for the regression is:

    Code:
    gidm (d_i N_retirincap area nadultos nmenores i.income i.h_educ ib13.CCAA) (i.health_perception) (i.health_perception) (i.health_perception) (i.health_perception) [fw=fwt], inflation(0 1 2 3) link(lgcl)
    However, when I chage it to:

    Code:
    gidm (d_i N_retirincap area nadultos nmenores i.income i.h_educ ib13.CCAA) (i.health_perception nmenores) (i.health_perception nmenores) (i.health_perception nmenores) (i.health_perception nmenores) [fw=fwt], inflation(0 1 2 3) link(lgcl)
    This error comes out:

    Code:
            *:  3200  conformability error
              opt__cns_off():     -  function returned error
    opt__looputil_iter0_common():     -  function returned error
    opt__looputil_iter0_nr():     -  function returned error
              opt__loop_nr():     -  function returned error
                 opt__loop():     -  function returned error
                _moptimize():     -  function returned error
               Mopt_maxmin():     -  function returned error
                     <istmt>:     -  function returned error
    r(3200)        *:  3200  conformability error
              opt__cns_off():     -  function returned error
    opt__looputil_iter0_common():     -  function returned error
    opt__looputil_iter0_nr():     -  function returned error
              opt__loop_nr():     -  function returned error
                 opt__loop():     -  function returned error
                _moptimize():     -  function returned error
               Mopt_maxmin():     -  function returned error
                     <istmt>:     -  function returned error
    r(3200);
    I know what it means and I have tried replacing the error as recommended in other posts. However, in this case, it does not work, do you know why could be the reason?

    I appreciate any help you can provide.
    Last edited by Maria Clemente; 09 Nov 2023, 05:21. Reason: conformability error, gidm, regression analysis, new
Working...
X