# Questions tagged [python]

Python is an interpreted and general-purpose programming language

7 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
112 views

### Solving Rational Expectation Models Linear vs. Nonlinear

Since I am coding some linear New Keynesian models in python and solving them under rational expectations (using the method of undetermined coefficients/linear time iteration), I was wondering whether ...
• 71
278 views

### oTree: How to have unequal groups sizes, with agents ocasionally sitting out rounds

I'm designing an experiment that investigates the result of different groups sizes on the outcomes of Nash Demand games. I already programmed this experiment once in zTree, where we then conducted ...
1 vote
27 views

### Plotting a variable over terciles

I am looking to create a figure using Stata, specifically a figure depicting the median change in financial constraints over the years, categorized by terciles of total assets and operating cash flow. ...
1 vote
61 views

### Can the Mahalanobis distance measure ( as defined by Bloom, Schankerman, Reenen Econometrica 2013) between a firm and itself be greater than 1?

I am currently working on estimating a Knowledge Proximity measures for firms and wanted to replicate the Mahalanobis distance measure discussed in Appendix C.2 of Bloom, Schankerman, and Van Reenen (...
1 vote
39 views

### Python package for discrete preferences

Do you know of a package allowing to create objects representing agents with (strict) preferences over (a finite set of) discrete objects $A,B,C,…$, and profiles thereof. A minimal requirement would ...
13 views

### Leave-one-out mean removal stringency histogram

I am trying to construct the kind of histogram described here (https://blogs.worldbank.org/impactevaluations/judge-leniency-iv-designs-now-not-just-crime-studies). I don't really feel like my code is ...
• 23
54 views

### Cost-optimal p2p-trade in a community of households

I’m trying to solve the following problem and I’ve been working on it for a long time already: I want to optimize electricity-costs in a smart grid. There’s producer and consumer households in the ...
• 1