Comments (6)
For example, I would like to have a rho for "mushy" and "nonmushy" and second rho for "sweet" and "unsweetened"? Is this possible?
from pyblp.
You're right that pyblp doesn't currently support the three-level nested logit you're describing (choices over the nest, subneset, and alternatives). I haven't implemented variations on the nested logit model (except for including random coefficients) because my focus has been on RC-based variants.
There are a lot of nested logit variants and implementing them isn't high up on my to-do list. Expressions for derivatives get messy and my understanding is that literature has to some extent moved more towards RCs. But I'm happy to accept contributions!
I'll keep this issue open as a possible future enhancement to the package.
from pyblp.
I think most people would prefer to estimate a joint distribution of random coefficients for "sweet" and "mushy" in this case. Otherwise you have to take a stand on whether consumers choose "sweet" first and then "mushy" or the other way around.
In principle I think this would be straightforward because the resulting estimator is linear in parameters.
There are other models of partially overlapping nests that are a bit more involved.
Is there a particular example with aggregate data you were thinking of? There seem to be a lot of variants out there and nothing I would call the "standard" version.
from pyblp.
Dear Jeff and Chris:
Thanks for the quick reply, I'm currently trying to do an RCNL on the smartphone market. I thought about to divide the smartphone into 3 groups(low, mid, high ends), and a subgroup of (iOS, Android).
If there is a strong in-group preference among iOS users (or Android), then it is important to implementing RCNL in that case.
So far, I have run an RCNL base on just one layer(iOS, Android), and it is significantly different from the RC model with the random coefficient on iOS.
I was wondering, what would the substitution pattern looks like if I implemented multilevel RCNL.
Thanks for your response. You guys are awesome.
from pyblp.
from pyblp.
Cleaning up issues, multi-level nested logit isn't something we've had much demand for, and it'd be pretty difficult to implement. So I'm closing this for now.
from pyblp.
Related Issues (20)
- Trouble running the nevo tutorial HOT 2
- Unable to do parallel processing with micromoments HOT 5
- How to construct a separate pair of micro moments for each market HOT 4
- X1 formulation with only fixed effects HOT 2
- Memory issues with pyblp.differentiation_instruments HOT 4
- Demand Jacobian, markup term and first order conditions HOT 2
- Micromoments for choices within individuals HOT 10
- Boostrap the change in consumer surplus under a counterfactual scenario HOT 3
- Question: When using pyblp.parallel() to run problem.solve(), How can I make sure that each partition has enough RAM? HOT 9
- questions on price elasticity and convergence HOT 2
- Computing counterfactual shares HOT 2
- questions about different markets have different numbers of products HOT 1
- Questions on how to run simulation with different product attributes to different agents HOT 10
- Question - Is there a way to incorporate FEs in Simulation? HOT 4
- Supply-side moments for subset of markets HOT 3
- Trouble with importing PyBLP HOT 2
- ProblemResults question HOT 6
- Coding base level in categorical variables in pyblp HOT 2
- divide by zero error in "ProblemResults.compute_consumer_surpluses(eliminate_product_ids)" HOT 7
- ValueError ("The detected shape was (3,) + inhomogeneous part.") when running simulation.ipynb from the tutorial 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 pyblp.