Questions tagged [economics]

Economics is the social science that analyzes the production, distribution, and consumption of goods and services. In the context of programing, questions with this tag relate quantitative economic models, which employ a variety of concepts, and empirical data analysis using statistical methods such as regression analysis, and so forth.

Economics is the social science that analyzes the production, distribution, and consumption of goods and services. In the context of programing, questions with this tag relate quantitative economic models, which employ a variety of concepts, and empirical data analysis using statistical methods such as regression analysis, and so forth. In applied economics, input-output models employing linear programming methods are quite common. Large amounts of data are run through computer programs to analyze the impact of certain policies, IMPLAN is one well-known example.

Loosely taken from Wikipedia

337 questions
35
votes
0 answers

Fractional logit model in R

I would like to estimate covariate effects on a response whose values take on values in [0,1]. That is, the values of the response variable live between 0-1 (inclusive). I would like to use the fractional logit model described by Papke and…
Chris
  • 3,401
  • 5
  • 33
  • 42
12
votes
6 answers

Economics of software development

Can anyone point me towards any references that attempt to formulate an economics of software development? In my own research, I discovered a book by Barry Boehm on this, but it seems very awkward and theoretical. Dependency Structure Matrices seem…
yacdmnky
  • 487
  • 3
  • 15
8
votes
2 answers

Oaxaca Decomposition in R

I would like to make a Oaxaca Decomposition in R. It is used in e.g. labor economics to distinguish explained variance versus unexplained variance, I believe. I have not been able to find a suitable solution in R, and I am rather reluctant to…
Rasmus
  • 1,349
  • 1
  • 9
  • 15
7
votes
2 answers

Historical Decomposition In R

I'm currently trying to run a historical decomposition on my data series in R. I've read a ton of papers and they all provide the following explanation of how to do a historical decomposition: Where the sum on the right hand side is a "dynamic…
Gin_Salmon
  • 837
  • 1
  • 7
  • 19
5
votes
5 answers

Programming Neural Networks with Python?

I'm a College student (Economics) and I want to program some monetary models using Neural Networks. I want those models to be able to predict future values of some variables using economic data, but I really don't know how to "model" the program…
4
votes
1 answer

Querying IMF API with imfr - error no result/does not accept filter

I am currently trying to download a particular series from the Direction Of Trade Statistics at the IMF for a calculation of trade volumes between countries. There is a r-package imfr that does a fantastic job at doing this. However, when going for…
Datapumpernickel
  • 606
  • 6
  • 14
4
votes
1 answer

Fixed Effects plm package R - multiple observations per year/id

I'm working on a state and year fixed effects regression, which has 3 observations per state/year combo based on the race for that row (white, black, other) - See link below. So far, I've been using the base lm function to estimate a fixed effects…
dmunslow
  • 149
  • 1
  • 7
3
votes
1 answer

An algorithm for economic simulation?

I would like to create a game where the players create differents products with different prices (call it offers), and I give them a certain number of customers (call it demands). Now, I want an algorithm to decid what's the market share of each…
NLemay
  • 2,331
  • 3
  • 29
  • 45
3
votes
1 answer

Using OLS regression on binary outcome variable

I have previously been told that -- for reasons that make complete sense -- one shouldn't run OLS regressions when the outcome variable is binary (i.e. yes/no, true/false, win/loss, etc). However, I often read papers in economics/other social…
3
votes
1 answer

Implementing an macroeconomic model in Python's GEKKO

This question is focussed somewhat on economic optimisation, and somewhat on python implementation, but maybe some in the community are able to help. I'm trying to implement a standard continuous-time macroeconomic savings model in Python's GEKKO…
Econner93
  • 33
  • 3
3
votes
2 answers

Generate a random variable which is uncorrelated with errors in r

I generated an error in r u1<-rnorm(n, mean=0, sd=1); And I want to generate a random normal variable x ~ i.i.d.N(n, 0, 4) but this is not correlated with u1 i.e. corr(x, u1) is zero. How can I, define this in R?
usert1234
  • 49
  • 2
3
votes
1 answer

modulus values (roots) in VECM model using R?

thanks for reading my question. I am trying to fit a VECM for an economic research, i am using the vars and urca package on R using Rstudio. Considering i have no stationary time series, and both need one difference ,both are I(1), i need to use the…
Victor Espinoza
  • 318
  • 1
  • 9
3
votes
1 answer

Calculating Credit Impulse in R growth of growth

Part Finance Part R question I have been trying to replicate the below formula in R using the Quantmod package and xts also using the diff function. The code gives me a plot for credit impulse but it doesn't seem to be replicating what I am trying…
mannym
  • 325
  • 1
  • 16
3
votes
0 answers

Rolling window VECM in R

I'd like to get some help for rolling window vector error correction model (VECM) estimation in R. I have a data of almost 1600 observations and I would like to estimate the VECM by using a rolling window that consists of let's say 300 observations.…
drump
  • 31
  • 3
3
votes
2 answers

Why does Google provide public hosting of popular JavaScript formats?

Does Google track my coding habits to show Google ads in their search if i use any their hosted JavaScript framework? ...Or is there some other reason for them to host these? What is the benefit to them from hosting these frameworks?
Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852
1
2 3
22 23