Comments (4)
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.
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.
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.
@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)
- Error with "predict" command in newest versions HOT 11
- `*tmp*`[[k]] : subscript out of bounds HOT 2
- Incorrect predictions from mblogit when predictors are scaled HOT 3
- mblogit model comparison with anova does not calculate degrees of freedom from random parameters HOT 3
- Problems with model definition HOT 1
- Error when using nested random terms HOT 1
- Error `'a' (<dimension1> x 1) must be square` HOT 3
- Error from `predict.mmblogit()` HOT 2
- Incorrect result by `predict.mmblogit()` in case of multiple `random` formulas HOT 3
- Syntax for increasing iterations of mblogit model HOT 1
- systematic error with nested model HOT 2
- Frequent error in mblogit "Error in solve.default(Information) : system is computationally singular: reciprocal condition number" with models that run OK in nnet::multinom HOT 4
- Error "Error: no valid set of coefficients has been found: please supply starting values" for model that runs OK in nnet::multinom HOT 2
- [Question] Interpreting and plotting a mblogit model
- Feature request: allow some form of regularisation in multinomial fits? HOT 2
- Problem with random effect: In sqrt(diag(vcov.phi)) : NaNs produced HOT 2
- Error in formula HOT 5
- `summary` printing odd behaviour depending on response level names HOT 1
- Equivalent functions from lme4. HOT 1
- `Warning: Inner iterations did not coverge` and an advise about model structure HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mclogit.