【正文】
theta*mean`x39。 gen red`x39。=`x39。= mean(`x39。//***************************************************************//*******************************0、導入Excel數(shù)據(jù)//******************************************************************clearimport excel using C:\Users\Desktop\, firstrow clear//下面這個代碼很重要,下面這個代碼告訴Stata你的數(shù)據(jù)是面板數(shù)據(jù)tsset code time// unbalanced 表示非平衡面板xtdes//看看結(jié)構(gòu)//***************************************************************//*******************************簡單混合,和聚類標準差混合//*********************Y因變量 X自變量 C控制變量 reg Y X C1 C2 C3 C4 est store PT//*******************************簡單混合回歸,使用普通標準差 ①reg Y X C1 C2 C3 C4 ,vce(cluster code)est store PTse//***************