Announcement

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

  • Mlogit

    Hi
    I am stuch with simple Mlogit. I appreciate help
    I am trying to see which regions are attracted by people with different ethnicity
    so my regions as nominal var are my dependant.
    then people's ethnicity is my predictor.
    I simply did as below:
    mlogit regions i.ethnicty
    but I get the error no observation!

    The sample of data is as below:
    regions
    A
    B
    C
    D
    E
    for ethnicity
    Ethnicity
    Asian
    African
    European
    how can I solve it?

  • #2
    this would be a lot easier to answer if you had followed the advice in the FAQ (please read it) and used -dataex- for your data example; my guess is that at least one of these two variable is string (rather than numeric) and needs to be encoded so it becomes numeric; see
    Code:
    help encode
    and you probably want to set up your labels in advance and use the "label" option to the command

    Comment


    • #3
      Thanks lot
      Now when I use another variable for education which I have encoded, I got concave error.
      the date:

      The sample of data is as below:
      Regions code
      A 1
      B 2
      C 3
      D 4
      for ethnicity
      Ethnicity code
      Asian 1
      African 2
      american 3
      European 4
      Age as numerical variable

      and Education
      Education code
      Primary 1
      elementary 2
      tertiary 3


      mlogit Regions i. Education i. Ethnicity age


      where I have made a mistake?

      Comment


      • #4
        and when I remove any of these variables randomly it works!

        Comment

        Working...
        X