我想将数据从 Stata 导出到 csv 文件中:
outsheet "$dirLink/analysis.csv", replace comma
但我收到以下错误消息:
factor variables and time-series operators not allowed
r(101);
我在网上找不到解决方案。感谢帮助。
以下是变量定义:
tab0 str1 %9s
linkid float %10.0g
recid2 float %9.0g
recid1 float %10.0g
patient1 str28 %28s
patient2 str9 %9s
totwght int %10.0g
status str1 %9s
fname str13 %13s
sname str13 %13s
doby int %10.0g
cohort str2 %9s
res1 str27 %27s
res2 str29 %29s
residence str50 %50s
facility str22 %22s
maxwght int %10.0g