Hot answers tagged

13

In my university the choice of program is considered generally irrelevant. We focus on results, and it is up to each student to determine which program is best suited for the task and user preference. You will find that using one language translates very well to another. With resources like stackoverflow, I would not be too concerned about which. I would ...


7

The main economic journals are slowly starting to require authors to make their data and the code of their analysis available as part of the online appendix. When this is the case, it is easy to figure out which software was used. One example are recent publications in the American Economic Review. For instance, Calsamiglia, Caterina, Guillaume Haeringer, ...


7

LaTeX with forest The forest package of LaTeX allows you to draw game trees with pretty simple syntax. After copying a pre-set template into the LaTeX preamble, one can build up the game tree using a nested [] syntax, then the program takes care of node placement/spacing/etc. pros: customizability (you can annotate the game tree in any way you want) and ...


6

Mathematica has a graph building and drawing capability. So, if you built the graph in Mathematica, then you could plot it using settings of your choosing. In Mathematica, you might use the TreeGraph as way to build the graph, and TreePlot as a way to plot it. For example, the following code generates a tree with the nodes labeled by coordinate and has a ...


6

Basically it's better to use the software your PI uses! First (s)he will be able to correct your code. Second, if you're a TA for a class using one software, it's better to handle it... To find the faculty using R, either have a look at the papers/books published by one department. Or look at the R-packages published in your field and find the authors. I ...


6

If you are only looking for "A department where at least few researchers use R? ", I believe you should be able to find plenty. In my department (Vanderbilt University), I can count at least 3 grad students using R instead of Stata (oh and I guess with myself it makes 4 ;)). If you are looking for more heavily R-oriented econ department, you might have a ...


5

You could try searching the Harvard Dataverse for fileType:"R Data" like this: https://dataverse.harvard.edu/dataverse/harvard?q=fileType%3A%22R+Data%22 I think your use case of wanting to search for data in specific formats such as RData is a common one so I just created an issue about improving Dataverse to support this use case better: https://github.com/...


5

See RePEc's software top. You'll find much Stata, a bit Matlab, and nothing else. From long personal observations, economists' preferences are ranked like this: Stata (none) Matlab Python, R SAS, Gauss Java, C#, C, Julia are used when performance is important (heavy simulations, combinatorics, etc.). In a specific paper, software is easy to identify ...


4

Optimal allocation refers to whom the seller awards the item, in order to maximize revenue. In a Vickrey auction, it is a Nash equilibrium for everyone to bid their valuations. This is stronger than a Bayesian Nash equilibrium, which is the solution concept in Bayesian games (which include auctions). The Bayesian Nash equilibrium is the solution concept in ...


4

The simple answer to why the Cobb-Douglas functional form is used is because it is at least a log-linear approximation to some higher-order production function. That is, suppose you take a functional form that looks like this: $\log Y_t = f(A, K, L)$. Then a linear approximation would look like the Cobb-Douglas production function. (For a small $1\%$ ...


3

If you use LaTeX, you can also draw game trees with the istgame package, which is based on TikZ. The manual contains lots of examples with full codes including: game trees in any direction: downwards, upwards, eastwards, -45 degree, etc. labelling players, action labels, and payoffs decision nodes, chance nodes, terminal nodes various information sets ...


3

They measure different things. In particular the Gini index measures inequality and is strongly affected by the number of individuals with almost nothing, while the Herfindahl index measures the diversity of the shares (for example the choice in a market) and is almost unaffected by those with almost no share If $n$ people had equal shares then the Gini ...


2

The matchingMarkets package in the R software now implements two constraint encoding functions to find all stable matchings in the three most common matching problems: hri: college admissions problem (including the student and college-optimal matchings) and stable marriage problem (including men and women-optimal matching) sri: stable roommates problem. ...


2

Patrick Prosser has some great java code at http://www.dcs.gla.ac.uk/~pat/roommates/distribution/ which, among other things, can compute all the stable matchings in roommate problems. The code is for roommates problems, but Patrick's code allows preferences over roommates to include unacceptable roommates. To implement a two-sided market, just make sure any ...


2

General remarks: The BG test under homoskedasticity can be done using the bgtest command in the lmtest package of R. The $(n-p)R_{aux}^2$ version mentioned in link works only under homoskedasticity. In the presence of heteroskedasticity, Wooldridge (1991, JoE) gives a discussion (as noted in the Wooldridge textbook you mentioned). What I think: I guess that ...


1

The data sample is so small that formal testing for stationarity would be essentially worthless. Inspect visually your individual series for any obvious trend. This would be the case where even with a short sample non-stationarity would be a problem.


1

It's hard to say. Presumably you think you have some fixed (unobservable) omitted variables, which is why you ran fixed effects (FE) / first differences. So I see one of two things going on here: The fixed omitted variables caused significance in the first regression, which means you do not have a significant effect. Do you have fixed omitted variables? If ...


1

A random variable $X$ has a Pareto distribution with Pareto exponent $\theta$ if $$\text{P}(X>x)=\begin{cases} \left(\frac{x}{x_m}\right)^\theta \quad \text{ if } x\geq x_{min}\\ \ \ 1 \quad \quad \quad \text{ if } x<x_{min} \end{cases}$$ In this case, the Pareto exponent is $\theta = \alpha - 1$. Remember that $P(X>x)=\int_x^\infty p(x')\...


1

There's two implementations that should somewhat cover your needs, matchingR which does reduced-form algorithmic matching and matchingMarkets, which estimates estructural matching models with some baysean tools to correct for endogeneity. The problem is you're looking for some very specific models which may require some tweaks on these implementations.


1

Here the solution would depend on what you want to accomplish. Note the problem is not just that the series is unbalanced, for an ordinary unbalanced panel data-set where firms have different number of $T$ observation the command would still work. Here no adjustments are necessary, you can easily try it yourself: install.packages("plm") library("plm") data(...


1

According to page 6 of the documentation for vars, the Cholesky decomposition matrix is lower triangular: The long-run impact matrix is the lower-triangular Choleski decomposition of the above matrix and the contemporaneous impact matrix is equal to: $$(I_K − A_1 − \dots − A_p)Q$$ where $Q$ assigns the lower-triangular Cholesky decomposition. ...


1

Just for your convenience If you are interested in the istgame package, you can do like this (to draw Amit's examples): For the centipede game: \documentclass{standalone} \usepackage{istgame} \begin{document} \begin{istgame} %% for arrows (optional) \xtShowArrows \xtShowEndPoints[ellipse node] \xtHideTerminalNodes %% some more optional settings \...


1

I have used LaTeX with tikz package. The following code is used to generate this Centepede Game : \documentclass{article} \usepackage{tikz} \usepackage{bodegraph} \usepackage[printwatermark]{xwatermark} \begin{document} \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=1.3cm, thick,main node/.style={circle,fill=blue!20,draw,...


1

Unfortunately not, as in frequentist statistics the true slope is not a random variable. This leads to a bit of a mouthful as the conclusion What you could say is that if your assumptions are correct (such as a linear relationship with random errors) and you repeated the exercise with new sample data and new regressions, $95\%$ of the confidence intervals ...


Only top voted, non community-wiki answers of a minimum length are eligible