Announcement

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

  • meologit for ordinal output variable and continuous predictor

    Dear Stata users,
    I am very very new to Stata program and trying to perform 2 level ordinal regression analysis. My DV is ordinal, but some of the IVs(predictors) are continuous (reading from instruments).
    So my question is how to specify correctly in syntax for melogit command info about those continuous variables so that analysis will be performed correctly?
    Should I type c. before variable name?

    I know that this is basic question but I couldn`t find the answer in other sources.

    Thank you.
    Last edited by John Horn; 04 May 2017, 07:49. Reason: melogit, continous predictor

  • #2
    Originally posted by John Horn View Post
    Should I type c. before variable name?
    Yes, although it is not mandatory unless you're specifying an interaction term.

    Originally posted by John Horn View Post
    I know that this is basic question but I couldn`t find the answer in other sources.
    At Stata's command line, type
    Code:
    help factor variables

    Comment


    • #3
      Originally posted by Joseph Coveney View Post

      Yes, although it is not mandatory unless you're specifying an interaction term.


      At Stata's command line, type
      Code:
      help factor variables
      Thank you for your answer Joseph, but I tried and I think that I am still doing something wrong as with c. or without it, I am still getting identical results.

      meologit gcsat TCsat ACsat AIRQsat PSYw vision View_VC c.clo_bmi c.(Ewall1 Ewalls rEdeskEroom troom co2 hroom) || partno:

      Click image for larger version

Name:	With C.PNG
Views:	1
Size:	54.6 KB
ID:	1391082



      meologit gcsat TCsat ACsat AIRQsat PSYw vision View_VC clo_bmi Ewall1 Ewalls rEdeskEroom troom co2 hroom || partno:

      Click image for larger version

Name:	Without C.PNG
Views:	1
Size:	46.6 KB
ID:	1391083


      So, what could be a solution then?

      Comment


      • #4
        Originally posted by John Horn View Post
        with c. or without it, I am still getting identical results.
        Correct.

        As I said, it's not mandatory (unless you're constructing an interaction term involving a continuous variable).

        Did you read the help file? What in it didn't you understand?

        Comment

        Working...
        X