Questions tagged [python]
Python is an interpreted and general-purpose programming language
10
questions
0
votes
0answers
51 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 ...
0
votes
0answers
7 views
Non Linear regression to obtain diminishing marginal effect / elasticity
I am working with some real estate data on housing units. For a given market, I have data on occupied units, rents, and control variables such as population, demographics, income levels etc.
I'd like ...
2
votes
3answers
1k views
Python vs R (vs Stata): the old battle revisited
I am an avid Python user. I know Stata but I'm not a pro. I don't know R. I do econometrics (mostly time series, but also cross-section and panel), and statistics, and Python seems quite sufficient in ...
0
votes
0answers
19 views
Random payoff generation in Otree
I am programming an experiment in python which involves the decision between two players to either enter a market or exit based on a prisoner's dilemma payoff structure. However, the payoff of each ...
0
votes
3answers
72 views
ROI and stock rates
I'm an engineer with minimal to zero knowledge about economical topics, please be patient with me if the following question makes no sense or is too basic ...
Currently I'm working through the "...
1
vote
0answers
157 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 ...
11
votes
3answers
20k views
Outputting Regressions as Table in Python (similar to outreg in stata)?
Anyone know of a way to get multiple regression outputs (not multivariate regression, literally multiple regressions) in a table indicating which different independent variables were used and what the ...
7
votes
2answers
2k views
Code finding all stable matchings in one-to-one problem
Do you know of any publicly available code in python or R (or any other free high level language) that returns all the stable matchings for any one-to-one matching problem?
Note: This is related but ...
1
vote
0answers
29 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 ...
4
votes
2answers
854 views
Computing Boston and TTC in Python
This is somewhat of a follow up question to Available code for computing solutions to matching algorithms?.
In the above question, I got great answers, but all of them were for ...