Announcement

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

  • report var(residual) / melogit vs. xtmixed ?

    l am working about cross-classified multilevel model

    dependent variable : immigration y/n (binary, immigration : 1, none : 0), level1 : personal variable, level2 : move-out reigon(varlist : depid_), level2: move-in region(varlist : arrid_)



    meqrlogit immigration(binary) || all : R.depid_(move-out region) || arrid_(move-in region):, var


    i use "var" option. but, didn't report the result of variance(residual). what's the problem?



    can i use xtmixed model instead of melogit model in binary dependent variable?

  • #2
    In a logistic model, the residual variance is always pi2/3.

    Comment


    • #3
      Also, xtmixed is the old name for mixed. Both fit hierarchical linear models. If you fit one to binary data, that's like fitting a fancier linear probability model. Some people will get nervous if you do that, because we do have logistic regression. LPMs actually work fairly well, though.
      Please use the code delimiters to show code and results - use the # button on the formatting toolbar, between the " (double quote) and <> buttons.

      Please use the command -dataex- to show a representative sample of data; it is installed already if you have Stata 14.2 or 15.1, else you can install it by typing

      Code:
      ssc install dataex

      Comment

      Working...
      X