Saturday, October 14, 2017

stata

Predict yhat
Predict residual

LATE

An F statistic is a value you get when you run an ANOVA test or a regression analysis to find out if the means between two populations are significantly different. It’s similar to a T statistic from a T-Test; A-T test will tell you if a single variable is statistically significant and an F test will tell you if a group of variables are jointly significant.


General introductory stats: 


Chi-squared test:

Contingency table:


Asses the elasticity of substitution
Assess the lq
Assess the elasticity equation in general

Need Reconsideration ...
Problem of Endogeneity
In general, we say that a variable X is endogenous if it is correlated with the model error term. Endogeneity always induces bias.

What is GLS?
GLS --> compress residuals that are far apart and pull close ones.

What is poisson dist and negative binomial?
·           Wooldrige test for autocorrelation
·           Control for population separately. Run the xtreg.
·           Control for year in the pooled OLS. (What is the good of pooled ols or xtreg in panel analysis?)

Notes from Min’s presentation

  

Page 60-61 Graph.

We use a t-distribution on regressions

You want y-hat minus y-bar to be minimal (ESS). This is good. Close to mean. Small S.D.

 

y minus y-hat big is not good. (RSS)

* Log-Linear % to Unit

reg lncigsale retprice beer lnincome  age15to24

 

* Linear-Log Unit to %

reg cigsale lnretprice beer lnincome  age15to24

 

* Log-Log (Elasticity) % to %

reg lncigsale lnretprice beer lnincome  age15to24

 

Run these tests after regression

** Breusch-Pagan Test

qui reg cigsale retprice beer lnincome age15to24

estat hettest

 

** White test

qui reg cigsale retprice beer lnincome age15to24

estat imtest, white

 

Robust Regression:

 

multicol

distributional

heteroscedasticity (White, Brusch-Pagan)

Outliers (Cook’s Distance)





PCA
Data Reduction process


FE RE

Analytics:
Network:
visually good: http://gephi.github.io/
Visual:
Content Miner (Textual data): QDA Miner, Rapid miner, Nvivo; Google N-Grams

GIS:
      Geoda (free) → https://geodacenter.asu.edu/
      Crimestat (free)
      QGIS (free)

ArcGIS
Very good books with tutorials is:
Many colleges including Harvard have GIS tutorials and exercises. Visit :http://hcl.harvard.edu/libraries/maps/gis/tutorials.cfm
Maximum Likelihood Examples:


No comments:

Post a Comment