Stataのコード置き場

reg y x, allbaselevels   /*カテゴリ変数の基準を表示*/

 

/*回帰結果をエクセルに出力*/

outreg2 using reg.xls, append

 

/*回帰係数と信頼区間をプロット*/

ssc install coefplot, replace

coefplot, drop(_cons) xline(0)

 

/*生存時間分析系*/

/*カプランマイヤー*/

sts graph, by(x)

sts test x