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 ...