全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1614 4
2017-08-17
不知道发在这个主题有没有问题我发现我输入的任何指令,只要跟if rate==某个数值有关,都会没有反应
具体见图
10000.png 20000.png 30000.png

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2017-8-17 11:13:31
建議用 dataex (先 ssc install dataex 并见说明) 将原始 Stata 资料中具有”代表性”的一部分资料列出,以供有意回答者实验之用,并能提供具体操作指令。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2017-8-17 11:55:57
请问是提供这个吗?
1.dta
大小:(4.74 KB)

 马上下载


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2017-8-17 12:25:02
list   if rate=float(6.7744)




Programming function

    float(x)
       Domain:       -1e+38 to 1e+38
       Range:        -1e+38 to 1e+38
       Description:  returns the value of x rounded to float precision.

                     Although you may store your numeric variables as byte, int, long,
                     float, or double, Stata converts all numbers to double before
                     performing any calculations.  Consequently, difficulties can arise in
                     comparing numbers that have no finite binary representations.

                     For example, if the variable x is stored as a float and contains the
                     value 1.1 (a repeating "decimal" in binary), the expression x==1.1
                     will evaluate to false because the literal 1.1 is the double
                     representation of 1.1, which is different from the float
                     representation stored in x.  (They differ by 2.384 x 10^(-8).) The
                     expression x==float(1.1) will evaluate to true because the float()
                     function converts the literal 1.1 to its float representation before
                     it is compared with x. (See [U] 13.11 Precision and problems therein
                     for more information.)


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2017-8-17 13:43:46
蓝色 发表于 2017-8-17 12:25
list   if rate=float(6.7744)
明白了!谢谢大神!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群