Stata如何绘制带可信区间的线图?

绘制上图的Stata代码如下: *Figure: Line plots witthed line with confidence interval * Load data set use "http://ds.epiman.cn/uploads/2022/06/line-fit-text.dta", clear * Treament effect reg y_var x_var post x_var_post control * Save coefficients for graph local beta_pre = round...

Stata如何绘制半透明散点图?

*FIGURE: Scatter plot with transparent points sysuse auto, clear scatter price mpg /// , /// mcolor(midblue%50) /// the value after % sets the transparency mlwidth(0) /// set width of border to 0 graphregion(color(white)) * Have a lovely day! * Source: https://worldbank.github...

Stata如何绘制带阴影的核密度图?

生成上图的Stata命令如下: *Figure: Shaded k-density functions * Packages required ssc install akdensity * Load data use "http://ds.epiman.cn/uploads/2022/06/density-shaded.dta", replace * Create variable used for graph sort beta_ gen rank = _n * Calculate parameters for graph ...

Stata如何生成带数据点的密度图?

绘制上图的Stata命令如下: * Figure: Density graph with data points global graph_opts title(, justification(left) color(black) span pos(11)) /// graphregion(color(white)) ylab(,angle(0) nogrid notick) xscale(noline) yscale(noline) yline(0 , lc(black)) /// xtit(,placement(left) ...

如何用Stata绘制箱线图?

绘制上图的Stata命令如下: * Figure: 10-25-50-75-90 percentile box plot global graph_opts1 bgcolor(white) graphregion(color(white)) legend(region(lc(none) fc(none))) /// ylab(,angle(0) nogrid) title(, justification(left) color(black) span pos(11)) subtitle(, justification(left)...