varlist: country: string variable not allowed 解决方案为: encode country, gen(country1) 在xtset命令中使用“country1”而不是“country” 需要使用数值型类型 2 探索面板数据 use Panel101.dta,clearxtset country yearxtline y 结果为: 如果放在一张图里面,操作为 xtl...
图4 Stata修改数据格式的命令 如图5所示,在转换数据类型前,运行“metan”命令做效应值的合并,stata提示数据类型有误“string variable not allowed”,进行数据转换后,meta分析的合并就顺利完成了。 图5 Stata进行二分类变量meta分析的结果 2 Egger或Begg检验运行出错 有不少人反映,stata在做Egger、Begg检验的时候报错...
depvar被解释变量,indepvars 解释变量,qx(varname) is the threshold variable,门限变量,thnum(#) is the number of thresholds,在stata13.0中门槛值是必要项目,需要等于大于1,小于等于3,默认值为1,也就是至少存在三个门槛值。 rx(varlist) is the r...
order weight, before(price) 每当我输入 xtset code year 就会出现 varlist: code: string variable not allowed 到底怎么了 下面是我的数据varlist: code: string variable not allowed destring XXX, replace force 定义面板数据时,出现repeated time values within panel 是怎么回事,如何解决?谢谢大家。 tsset tf...
bs(numlist) is the number of bootstrap replications. If bs is not set, xthreg does not use bootstrap for the threshold-effect test. bootstrap迭代次数 thlevel(#) specifies the confidence level, as a percentage, for confidence intervals of the threshold. The default is thlevel(95). 置信区...
二、Sobel Test (1)没控制时间固定效应与个体固定效应 (2)控制时间固定效应与个体固定效应---方法一 (3)控制时间固定效应与个体固定效应---方法二 三、Bootsrap 参考文献: 一、逐步回归法 双向固定效应模型(时间固定效应+省份固定效应) (1)xtreg y x controls i.year, fe robust (2)xtreg mediation x cont...
varlist: country: string variable not allowed 解决方案为: encode country, gen(country1) 在xtset命令中使用“country1”而不是“country” 需要使用数值型类型 2 探索面板数据 use Panel101.dta,clearxtset country yearxtline y 结果为: 如果放在一张图里面,操作为 ...
Statistics: How can I compute the Chow test statistic? (30 May 1997) Statistics: Why do I get the message "outcome does not vary" when I perform a logistic or logit regression? (7 May 1997) Data management: I am having trouble converting a SAS dataset to a Stata dataset using Stat...
Non-integer values are not allowed in factor variables for Stata ANOVA, Detecting non-integer values in variables through observations, Resolving the 'contrasts can only be applied to factors with 2 or more levels' error during debugging
tabstat a b c d,stats(mean median) //会显示string variables not allowed in varlist;d is a string variable 意思是d是字符串变量(不是数值变量),不能观察它的平均值和中位数 *---* split 分割示例,p("年""月""日""元""角""分") //根据“年”“月”“日”“元”“角”“分”分割字符串...