# Stata资源：一些不错的Stata-Blogs

Stata 连享会   主页 || 视频 || 推文

## Programming

### Basics

forvalues

foreach

capture

predict

return

logical operators

Random Variables

A note on generating random numbers

Generating 'random' variables drawn from any distribution

Drawing jointly distributed non-normal random variables

Mata

Matrix operations in Mata

Mata speed gains over Stata

Maximum Likelihood (write your own commands)

Programs

Remove a subset from a global - Stata

Simulation Tools

bootstrapped draws - merge method

Programming   Return Text   Stata Syntax Command's Syntax

## Data Management

Data Organization

Pre and Post Test Data Merge/Append

Moving Averages & Data Cleaning

Data Imputation

Hot Decking!

Easy recode all missing SPSS or SAS into Stata

Turn factor variables into a list of dummy variables

Stata Fuzzy match command

## Econometrics

Probability

Central Limit Theorem

Independence and Bayes Rule

Jensen's inequality

The Delta Method

Law of Iterative Expectations/Law of Total Expectations

Survival Rates and Negative Binomial

The Problem with Probabilities I - how many rolls does it take to get a 1?

Classical Problems

OLS w Correlation between x and u

The problem of near multicollinearity

The randomly walking currency market

Selection and Bias

Linear models with heteroskedastic errors

Calculating Mutually Exclusive Fixed Effects

Test Rejection Power for Failure of Normality Assumption

System Ordinary Least Squares

Unobserved Effect Models

Unobserved effects model - extensions

A brief look at fe vs re

Robust Hausman Test

Correlated Random Coefficients

Random Coefficients   Estimating Random Coefficients on X (using xtmixed)   Estimating Random Coefficients on X (using NormalReg -preferred)

Estimating Random Coefficients in a panel data

Binary Response Models

Reverse Engineering a Probit

Non-linear least squares

Simultaneous Equations   Demand Simulation and Estimation

Regression Discontinuity   Sharp Regression Discontinuity Example and Limitations   Non-Parametric Regression Discontinuity

Non-random Selection

Inverse Probability Weighting to Correct for Sample Selection/Missing Data

My Own Tools (No Theory Backing Them)   Breaking down R2 by variable   Sticky Probit - clustered bootstrapped standard errors   Non-Parametric PDF Fit Test   Test of PDF Fit - Does not work

Micro Simulations:   Selection Bias in the use of Fertilizer   Estimating Supply

Demand Simulation and Estimation

Estimating demand (AIDS model)

Misspecified Cobb Douglas Demand Model

Logistic Regression   Logistic or Logit or doesn't matter   Simulating Multinomial Logit

Path Analysis   Path Analysis

## Miscellaneous Topics

Special Topics

Estimating VAMs Value Added Methods (models)

Social network analysis simulation - contagious depression

2012 Election! Simulation and predictions. Obama wins 91% of simulated outcomes

Dynamic Simulations:

Spatial malaria epidemiology infection model

Exporting Results for Publication   Creating Professional Tables Using Estpost   Professional Post Estimation Tables Using Estout

## Psychometrics

Classical Methods

## R & Stata Bridge

Commands in Stata and R   7 commands in R & Stata

## 相关课程

http://lianxh.duanshu.com

### 课程一览

Stata数据清洗 游万海 直播, 2 小时，已上线

Note: 部分课程的资料，PPT 等可以前往 连享会-直播课 主页查看，下载。

#### 关于我们

• Stata连享会 由中山大学连玉君老师团队创办，定期分享实证分析经验。直播间 有很多视频课程，可以随时观看。
• 连享会-主页知乎专栏，300+ 推文，实证分析不再抓狂。
• 公众号推文分类： 计量专题 | 分类推文 | 资源工具。推文分成 内生性 | 空间计量 | 时序面板 | 结果输出 | 交乘调节 五类，主流方法介绍一目了然：DID, RDD, IV, GMM, FE, Probit 等。
• 公众号关键词搜索/回复 功能已经上线。大家可以在公众号左下角点击键盘图标，输入简要关键词，以便快速呈现历史推文，获取工具软件和数据下载。常见关键词：`课程, 直播, 视频, 客服, 模型设定, 研究设计, stata, plus, 绘图, 编程, 面板, 论文重现, 可视化, RDD, DID, PSM, 合成控制法`