# Tag Info

Accepted

### Outputting Regressions as Table in Python (similar to outreg in stata)?

You can use code like the following (making use of the as_latex function) to output a regression result to a tex file but it doesn't stack them neatly in tabular form the way that outreg2 does: ...
• 16.3k

### Proof coefficient in log-log model is equal to coefficient of elasticity

Because $\Bbb E[\varepsilon \mid x]= 0$ is one of the key assumptions for the estimation.
• 1,307
Accepted

### What R-squared is a low R-squared?

Disclaimer: this answer comes from a microeconomic research perspective. Time series / macroeconomic specialists will likely have other perspectives. There is no general rule for what's too low ...
• 458
Accepted

### Why we need to control for the interation of year and industry fixed effects?

When you control for not just year fixed effects but instead year-region or year-industry it adds flexibility. The year fixed effects controls in a flexible manner for the time-trend and is more ...
• 3,296

### Outputting Regressions as Table in Python (similar to outreg in stata)?

You can use the stargazer package (install with pip install stargazer). From https://github.com/mwburke/stargazer/blob/master/...
• 193

### How do I calculate price elasticity of demand using historical price and quantity data?

You've fallen into a really common pitfall -- the spurious regression. The parameters you chose to include can't be chosen 'willy nilly' by throwing data into a regress command. Ultimately this can't ...
• 264

### Alternative to linear regression

There are numerous directions to go which start moving you beyond ordinary least squares (OLS), linear regression. The universe of statistical methods is large! Two books that I particularly enjoyed ...
• 906

### What should we do if the subsample have the opposite results to the general results?

This sounds like a case of Simpson's Paradox. Did you control for fixed effects? You might also have heterogeneity - there may be different results in developing vs developed countries. Generally, it'...
• 3,477

### Is a hedonic regression a reduced-form?

In the benchmark hedonic price analysis, we assume a utility function of the general form $$U = U(x, z_1,...,z_n)$$ where "$x$" stands for the composite good, and $(z_1,...,z_n)$ are the ...
• 33.7k
Accepted

### Including (demand) price elasticity in a price regression model

The incorporation of a price elasticity in your regression requires that your dependent variable, quantity, be logged as well. Take an example of a basic demand side equation including two ...
• 8,305
Accepted

### What is a good proxy for government quality?

Using corruption is part of it but a bit restrictive way to measure government "quality". You may use aggregate indicators as the one developed by the Worldwide Governance Indicators (WGI) project ...
• 6,935
Accepted

### Is this an an endogeneity/simultaneity problem?

Let us consider Situation 1. Let us assume that $\rho$ is observed. If it does not work when $\rho$ is observed, there is no reason why it (using a proxy of $\rho$ as instrument) should work when \$\...
• 2,114

### What should we do if the subsample have the opposite results to the general results?

tldr: As the other two answers also indicated, there is not necessarily a problem with your results. It might be the case that the two subgroups have different distributions of the covariates. ...
• 11.3k
Accepted

• 33.7k

### More complex than simple and multiple regressions?

For a list of methods used in applied econometrics you can take a look at the ReplicationWiki (that I work on). Many of them have data and code so you can easily try them out. (The example is with ...
• 539