描述性统计: sum2docx
sum2docx varlist [if] [in] [weight] using filename , [options]
相关系数矩阵: corr2docx
corr2docx varlist [if] [in] [weight] using filename , [options]
分组t检验: t2docx
t2docx varlist [if] [in] using filename , [options] by(groupvar)
回归结果: reg2docx
reg2docx modellist using filename , [options]
sysuse "auto.dta", clear
sum2docx price mpg weight length using sum.docx, replace stats(N mean(%9.2f) sd(%9.2f) min(%9.2f) median(%9.2f) max(%9.2f)) varname
sum2docx price mpg weight length using sum.docx, replace stats(N mean(%9.2f) sd(%9.2f) min(%9.2f) median(%9.2f) max(%9.2f)) varlabel
corr2docx price mpg weight length using corr.docx, replace varname
corr2docx price mpg weight length using corr.docx, replace varlabel
t2docx price mpg weight length using t.docx, replace varname by(foreign)
t2docx price mpg weight length using t.docx, replace varlabel by(foreign)
reg price mpg
est store m1
reg price mpg weight length
est store m2
reg2docx m1 m2 using reg.docx, replace varname
reg2docx m1 m2 using reg.docx, replace varlabel
note()选项
note(string) ⇒ note(string[, cell_fmt_options])
sum2docx price mpg weight length using sum.docx, replace stats(N mean(%9.2f) sd(%9.2f) min(%9.2f) median(%9.2f) max(%9.2f)) note("data source: 1978 automobile data")
sum2docx price mpg weight length using sum.docx, replace stats(N mean(%9.2f) sd(%9.2f) min(%9.2f) median(%9.2f) max(%9.2f)) note("data source: 1978 automobile data", font("楷体"))
sum2docx price mpg weight length using sum.docx, replace stats(N mean(%9.2f) sd(%9.2f) min(%9.2f) median(%9.2f) max(%9.2f)) note("data source: 1978 automobile data", halign("center"))
margin()选项
margin(type, #[unit])
sum2docx price mpg weight length using sum.docx, replace stats(N mean(%9.2f) sd(%9.2f) min(%9.2f) median(%9.2f) max(%9.2f))
sum2docx price mpg weight length using sum.docx, replace stats(N mean(%9.2f) sd(%9.2f) min(%9.2f) median(%9.2f) max(%9.2f)) margin(all, 0.5in)
sum2docx price mpg weight length using sum.docx, replace stats(N mean(%9.2f) sd(%9.2f) min(%9.2f) median(%9.2f) max(%9.2f)) margin(top, 1in) margin(left, 0.5in) margin(right, 0.5in)
append选项
append ⇒ append(apopts)
sum2docx price mpg weight length using sum.docx, replace stats(N mean(%9.2f) sd(%9.2f) min(%9.2f) median(%9.2f) max(%9.2f)) font("times noew roman", 9)
sum2docx price mpg weight length using sum.docx, append stats(N mean(%9.2f) sd(%9.2f) min(%9.2f) median(%9.2f) max(%9.2f)) font("楷体", 11)
sum2docx price mpg weight length using sum.docx, replace stats(N mean(%9.2f) sd(%9.2f) min(%9.2f) median(%9.2f) max(%9.2f)) font("times noew roman", 9)
sum2docx price mpg weight length using sum.docx, append(stylesrc(own)) stats(N mean(%9.2f) sd(%9.2f) min(%9.2f) median(%9.2f) max(%9.2f)) font("楷体", 11)
sum2docx price mpg weight length using sum.docx, replace stats(N mean(%9.2f) sd(%9.2f) min(%9.2f) median(%9.2f) max(%9.2f))
sum2docx price mpg weight length using sum.docx, append(pagebreak) stats(N mean(%9.2f) sd(%9.2f) min(%9.2f) median(%9.2f) max(%9.2f)) landscape
corr2docx price mpg weight length using corr.docx, replace star
corr2docx price mpg weight length using corr.docx, replace star starsps
t2docx price mpg weight length using t.docx, replace by(foreign) star
t2docx price mpg weight length using t.docx, replace by(foreign) star starsps
reg2docx m1 m2 using reg.docx, replace star
reg2docx m1 m2 using reg.docx, replace star starsps
t2docx price mpg weight length using t.docx, replace by(rep78) diff(1 5) landscape
reg2docx m1 m2 using reg.docx, replace ci(%9.2f)
reg2docx m1 m2 using reg.docx, replace scalars(N r2(%9.2f) r2_a(%9.2f))
reg2docx addfe()
webuse nlswork
xtset idcode year
xtreg ln_w age c.age#c.age i.year, fe
est store m1
xtreg ln_w age c.age#c.age ttl_exp c.ttl_exp#c.ttl_exp i.year, fe
est store m2
reg2docx m1 m2 using reg.docx, replace scalars(N r2(%9.2f)) indicate("Year FE = *year*") addfe("Individual FE = Yes")