在Stata中遇到“too few variables specified”错误通常意味着你在执行一个需要指定多个变量的命令时,没有提供足够数量的变量。以下是对该错误的详细解答: 确认错误信息的来源和上下文: 这个错误通常出现在执行需要多个变量的命令时,如回归分析、因子分析或其他多变量统计方法。 需要检查你正在使用的命令,以及你为该命...
你使用的命令不需要这么多的变量。所以会出现上述提示。或者你变量位置写错了。
想问下解决了吗
将数据输入Stata的数据编辑窗口,或复制Excel表格的数据粘贴到数据编辑窗口,合并效应值需要用到以下数据:OR、RR、HR及其95%CI。如下图所示,录入相关数据(lci、uci分别为95%CI的下限和上限)。 2、数据转换 对rr、lci、uci取对数: gen logrr=log(rr); gen loglci=log(lci); gen loguci=log(uci)。 3、得到...
gen int=1 //会显示too few variables specified 代表不能用数值类型的名字作为变量名,例如,byte、int、long、float、double、str+数字(意思就是str1、str2、str3…以此类推)就不可以,但“str”可以;同样地,变量名的第一位不能出现数字 gen lna=ln(d) //会显示type mismatch 即类型不匹配 意思是d不是数...
STATA导出EXCEL时提示导出too many or no variables specified 问题解决 STATA导出EXCEL时提示导出too many or no variables specified 导出XLSX格式。 如果选择xls格式行数有限
3. gen x = ( n-1)/( -1)*( - )+ because the built-in variable n is 1 in the first observation, 2 in the second, and so on; see [U] 13.4 System variables ( variables). So, the first version of our program might read program rng // arguments are n a b clear set obs '...
gegenegen9 to 26 / 4 to 9 (+,.)labelsWeights, quantiles, nunique, etc. gcontractcontract5 to 7 / 2.5 to 4 gisidisid8 to 30 / 4 to 14using,sortif,in glevelsoflevelsof3 to 13 / 2 to 7Multiple variables, arbitrary levels ...
If using long format, organizes data for repeat groups (if any) into separate .dta files (linkable via the key and parent_key variables). In more detail, each template: Initializes Stata ("clear all", "set mem", etc.). Depending on your memory requirements and version of Stata, you ...
谢邀!在提问问题的时候,最好附上相应的代码,这样才方便我们回答。