Giter Club home page Giter Club logo

Comments (2)

AnestisTouloumis avatar AnestisTouloumis commented on July 18, 2024

Hi Gauti,

It is unclear to me whether you are comparing ordLORgee with the results from ordgee or geeglm functions, so I consider both cases:

  1. Comparison with ordgee: It seems that there is a bug in ordgee so I would not use this function. See Introduction Section
  2. Comparison with geeglm: It depends on the coding of the response categories for the categorical and of the scores in the linear variable (higher score implies anxiety?). The key is to focus on the interpretation and not the sign. For example, consider the following code, using the dataset arthritis from multgee:

library("multgee")
data("arthritis")
fitmod <- ordLORgee(formula = y ~ factor(trt) , data = arthritis, id = id, repeated = time, LORstr = "independence")
coef(fitmod)

  beta10       beta20       beta30       beta40 factor(trt)2 
  -3.021       -1.038        0.698        2.656       -0.521 

library("geepack")
fitmod_gee <- geeglm(formula = y ~ factor(trt), data = arthritis, id = id, corstr = "independence")
coef(fitmod_gee)

  (Intercept) factor(trt)2 
    3.079        0.296 

In this example, the signs for the estimated regression coefficient for the treatment are different, but the interpretation is similar. In the gee multinomial model, the estimated coefficient is negative which means that the cumulative odds for a fixed response category or below are lower for the treatment (hence the treatment is better than the placebo).
In the linear model (second model), it seems that the treatment increases the score of the response variable (again treatment is better than placebo).

I hope this helps. Just keep in mind, that the above is not a mathematical proof and I cannot prove that this is true for all datasets.

from multgee.

gautig avatar gautig commented on July 18, 2024

Hi Anthestis

Thank you very much for you answer.

I was comparing ordLORgee to both geeglm and ordgee, but will not use ordgee because of known bugs (as you mention) but also because it does not work with glht, which I use to pull out results for interaction terms.

I still don't understand why the sign of the estimate is not the same but still interpretation the same. I am even tempted to reverse my ordered outcome so I get the estimates with same sign as I am used to.

from multgee.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.