全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
5399 6
2017-08-04
请问用stata画中国地图时,它自动分组的依据是什么?
二维码

扫码加我 拉你入群

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

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

全部回复
2017-8-4 11:45:23
这种问题,看命令的帮助啊。
如spmap帮助里面的

    ----+ Choropleth map +---------------------------------------------------------------------------------------------
    clmethod(method) specifies the method to be used for classifying variable attribute and representing its spatial
        distribution as a choropleth map.
        clmethod(quantile) is the default and requests that the quantiles method be used.
        clmethod(boxplot) requests that the boxplot method be used.
        clmethod(eqint) requests that the equal intervals method be used.
        clmethod(stdev) requests that the standard deviates method be used.
        clmethod(kmeans) requests that the k-means method be used.
        clmethod(custom) requests that class breaks be specified by the user with option clbreaks(numlist).
        clmethod(unique) requests that each value of variable attribute be treated as a distinct class.

    clnumber(#) specifies the number of classes k in which variable attribute is to be divided.                    

         When the quantiles,  equal intervals, standard deviates, or k-means classification method is chosen, the default is clnumber(4).
          When the boxplot classification method is chosen, this option is inactive and k=6.
         When the custom  classification method is chosen, this option is inactive and k equals the number of elements of numlist specified in option clbreaks(numlist) minus 1.
         When the unique classification method is chosen, this option is inactive and k equals the number of different values taken on by variable attribute.


    clbreaks(numlist) is required when option clmethod(custom) is specified. It defines the custom class breaks to be used for classifying variable attribute. numlist should be specified so that the first element is the minimum value of variable attribute to be considered; the second to kth elements are the class breaks; and the last element is the maximum value of variable attribute to be considered. For example, suppose we want to group the  values of variable attribute into the following four classes: [10,15], (15,20], (20,25] and (25,50]; for this we must specify clbreaks(10 15 20 25 50).






二维码

扫码加我 拉你入群

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

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

2017-8-7 08:37:52
蓝色 发表于 2017-8-4 11:45
这种问题,看命令的帮助啊。
如spmap帮助里面的
我找了的~~可是还是没有看出它的分组标准~~
二维码

扫码加我 拉你入群

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

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

2017-8-7 10:43:26
15757125463 发表于 2017-8-7 08:37
我找了的~~可是还是没有看出它的分组标准~~
一般默认是,quantiles,上面写了,百分位点。  还有其他方法。

除非你自己设定 clbreaks(numlist)
二维码

扫码加我 拉你入群

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

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

2018-12-8 09:24:29
蓝色 发表于 2017-8-7 10:43
一般默认是,quantiles,上面写了,百分位点。  还有其他方法。

除非你自己设定 clbreaks(numlist)
我设定了,也不行,不知道是什么原因
二维码

扫码加我 拉你入群

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

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

2020-3-25 12:00:23
Sandy_Liao 发表于 2018-12-8 09:24
我设定了,也不行,不知道是什么原因
使用命令时直接加   clm(c) clb(0.3 0.4 0.5 0.6),其中0.3-0.6是我自己设定的划分标准,你按照自己需要设定的写就好啦
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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