Comments (5)
from pyblp.
(Added in 51433dc)
from pyblp.
I think you've almost got it. You should definitely be using the Simulation
class when doing counterfactuals that aren't explicitly supported by ProblemResults
.
To keep prices the same, pass the prices you want to the prices
argument of Simulation.replace_endogenous
and set iteration=Iteration('return')
. This just uses the iteration "routine" that simply returns the the starting values, which are prices
. You can verify that prices haven't changed by looking at the product_data
attribute of the returned simulation results.
from pyblp.
Jeff, can you add this to the documentation somewhere?
To keep prices the same, pass the prices you want to the
prices
argument ofSimulation.replace_endogenous
and setiteration=Iteration('return')
. This just uses the iteration "routine" that simply returns the the starting values, which areprices
. You can verify that prices haven't changed by looking at theproduct_data
attribute of the returned simulation results.
from pyblp.
Yeah for sure, good point.
from pyblp.
Related Issues (20)
- 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
- Problem with including log-normally distributed random coefficients on price HOT 4
- Question: Most Efficient Way of Producing LaTeX Tables of PyBLP Results and Estimates HOT 4
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.