Giter Site home page Giter Site logo

Aggregate logit about mclogit HOT 4 CLOSED

yoshida-gisc avatar yoshida-gisc commented on June 20, 2024
Aggregate logit

from mclogit.

Comments (4)

melff avatar melff commented on June 20, 2024 1

I think if total is the total number of idividuals from which the proportion is computed then the aggregate model could be fitted as:

mclogit(cbind(total*prop.true, suburb)~distance+cost,data=Transport) 

or

mclogit(cbind(prop.true, suburb)~distance+cost,data=Transport,
        weights=total) 

from mclogit.

melff avatar melff commented on June 20, 2024 1

If you have only the proportions, then the results will be the same as in the case where the number of responses is the same in all suburbs. However, the inference will be much more conservative. This is not a problem of this particular implementation, but of any logit model, because the (inverse) number of the responses is used to compute the standard errors.

from mclogit.

yoshida-gisc avatar yoshida-gisc commented on June 20, 2024

Thank you very much for your prompt reply! I gotcha.

Just for making sure. In the data(Transport) case, total number of resp in suburb 1, 2, and 3 is 212, 212, 219, respectively. But, if we can not know the total number (that is, if we know only ratio), the code mclogit(cbind(prop.true, suburb)~distance+cost,data=Transport) will not be good and not correspond to the aggregate model, right?

So, mclogit(cbind(prop.true, suburb)~distance+cost,data=Transport) will be misleading as aggregate logit model.

from mclogit.

yoshida-gisc avatar yoshida-gisc commented on June 20, 2024

@melff Yes, I see this is not implementation problem. Thank you so much for your kind help and providing useful package!

from mclogit.

Related Issues (20)

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.