楼主: 皇宁存昂
2393 1

[数据管理求助] 为什么" numlabel _all, add" 提示"mismatched quotes"? [推广有奖]

  • 0关注
  • 3粉丝

已卖:191份资源

博士生

51%

还不是VIP/贵宾

-

威望
0
论坛币
2261 个
通用积分
24.1817
学术水平
0 点
热心指数
1 点
信用等级
1 点
经验
11337 点
帖子
358
精华
0
在线时间
208 小时
注册时间
2011-3-16
最后登录
2025-10-18

楼主
皇宁存昂 在职认证  发表于 2016-2-27 11:20:50 |AI写论文
10论坛币
大家好,

当我输入"numlabel _all, add"时,stata有时会说”mismatched quote", 即便我加上force这个选项也没用。请问这是为什么呢?有什么解决方法吗?

非常感谢!

关键词:mismatch Matched quotes mlabel label label 标签

沙发
皇宁存昂 在职认证  发表于 2016-2-27 22:16:34
You can break numlabel by strating a label with the single left quote character.

Code:
label define foo 42 "`single left quote"
label list foo
capture noisily numlabel foo , add
label drop foo
The single left quote causes problems in other places as well, .e.g. it will breaks levelsof when part of a string variable value.

This could probably be fixed but until then the single left quote is best avoided.

Best
Daniel
Last edited by daniel klein

http://www.statalist.org/forums/forum/general-stata-discussion/general/1328477-numlabel-_all-add-sometimes-return-mismatched-quotes

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-8 22:52