DΘstinyじò 发表于 2020-8-5 16:04 
试一下以下代码。
关于globdist和geodist的说明,二者在算法上有略微差异,globdist的地球半球默认是自动, ...
您好,感谢您的回答。我还有个问题,想请教一下,我更新了下数据,目前实际酒店数目是30000多个,我跑数据的时候报错了
qui tab hotelid
too many values
r(134);
我看了下这个问题。
Search of official help files, FAQs, Examples, SJs, and STBs
[P] error . . . . . . . . . . . . . . . . . . . . . . . . Return code 134
too many values
1) You attempted to encode a string variable that takes on
more than 65,536 unique values. 2) You attempted to tabulate
a variable or pair of variables that take on too many values.
If you specified two variables, try interchanging them.
3) You issued a graph command using the by option. The
by-variable takes on too many different values to construct
a readable chart.
(end of search)
我看这个问题显示60000以下都可以,为什么3万不行啊。
我想请教一下,这个问题如何解决