spatwmat using E:\Tencent\Stata\\Stata应用程序\w.dta ,name(w) standardize
xsmle y1 xn,fe model(sdm) wmat(w) nolog noeffects type(ind)
est store ind
xsmle y1 xn,fe model(sdm) wmat(w) nolog noeffects type(time)
est store time
xsmle y1 xn,fe model(sdm) wmat(w) nolog noeffects type(both)
est store both
lrtest both ind,df(10)
lrtest both time,df(10)
我是用上述的程序判断选择个体、时间还是双向固定效应的