Zhang, D. (2022). Green financial system regulation shock and greenwashing behaviors: Evidence from Chinese firms. Energy Economics, 111, 106064. 调取“Fig.3&4 China map code”文件夹中以下.dta文件放入运行目录: chinaprov40_coord:包含变量_ID _X _Y,各省轮廓坐标点 chinaprov40_line_coord:包含变...
Median double %10.0g 中位数 Top4Average double %10.0g 前四大均值 Top10Average double %10.0g 前十大均值 SymbolNum int %10.0g 股票个数 IndustryCode str3 %9s 行业代码 IndustryName str60 %60s 行业名称 --- Sorted by: Stkcd year . ta y year | Freq. Percent Cum. ---+--- 2005 | 941...
crhdreg depvar indepvarlist1 indepvarlist2 [if] [in] [, cluster1(varname) cluster2(varname) iv(varname) dimension(real) folds(real) resample(real) median alpha(real) tol(real) maxiter(real)] 其中, depvar:指定回归的被解释变量。 indepvarlist1:指定回归的内生解释变量。 indepvarlist2:指...
# of intervals, min value, max value)for example: genassets_categ=autocode(totalassets, 10, 0, 10000)4、对一个连续变量按每组样本数相同进行分组:xtilextile assets_categ=totalassets, nquantiles(10)每组样本不一定完全相同一次性计算同一变量不同组别的...
tabstat X1 X2,by(X3) stats(mean range q sd var cv p5 p95 median),[aw=X4](以X4为权重求X1、X2的均值,标准差、方差等) ttest X1=1 count if X1==0 count if X1>=0 gen X2=1 if X1>=0 corr x1 x2 x3(做x1、x2、x3的相关系数表) ...
tabstat X1 X2,by(X3) stats(mean range q sd var cv p5 p95 median),[aw=X4] //以X4为权重求X1、X2的均值,标准差、方差等 ttest X1=1 count if X1==0 count if X1>=0 gen X2=1 if X1>=0 corr x1 x2 x3 //做x1、x2、x3的相关系数表 ...
collapse (median) ((变量名)), by((变量名)) 生成的新数据库中记录了第一个括号中的变量(可以是多个变量)的中位数。右面的by选项是根据某个变量分组计算中位数,没有这个选项则计算全部样本的中位数。 合并数据库有两种方式,一种是增加观察,另一种是增加变量。第一种用append,用在两个数据库的格式一样,...
For causal inference with machine learning, use double-selection lasso, partialing-out lasso, and double machine learning. You can use PCA or kmeans, kmedians, or hierarchical clustering for unsupervised learning. And usesearchto find community-contributed commands for neural networks, support ...
any program - whether it is written by Stata staff or a Stata user - intends to solve a problem or facilitate a task. While other users can get benefit from using the program, reading the source code can reveals how the problem was solved. But I have had other reasons for spending the...
egen mread = median(read), by(prog) list read prog mread in 1/10 save sample5-1(存成另一個檔) save sample4-1(取代原來的sample4-1) keep if read >= 60 summarize save sample6-1 preserve drop if read < 60 summarize restore use sampleh1 append using sampleh2 use samplev1 sort ...