由买买提看人间百态

topics

全部话题 - 话题: tlevel
(共0页)
c*********r
发帖数: 1802
1
来自主题: Statistics版 - SAS 求助
没有人遇到过类似的问题吗?
data category;
set cate;
if TFW< 5 then Tlevel="W1";
else if 5<=TFW<8 then Tlevel="W2";
else if 8<=TFW<11 then Tlevel="W3";
else if 11<=TFW<14 then Tlevel="W4";
else if 14<=TFW<17 then Tlevel="W5";
else if 17<=TFW<20 then Tlevel="W6";
else if 20<=TFW<23 then Tlevel="W7";
else if 23<=TFW<26 then Tlevel="W8";
else if 26<=TFW<29 then Tlevel="W9";
else if 29<=TFW<32 then Tlevel="W10";
else if 32<=TFW<50 then Tlevel="W11";
else Tlevel="W12";
run;
proc print data=category;
by Tlevel;
ID ... 阅读全帖
k*******a
发帖数: 772
2
来自主题: Statistics版 - SAS 求助
This seems to be a SAS BASe problem.
Since "W1" appears first, the length of Tlevel is 2 by default
so when you assign "W10" to it, "W10" becomes "W1"
The solution is simply use a length statement like
length Tlevel $5;
j*******r
发帖数: 1
3
来自主题: Working版 - check this out
http://tiger.census.gov/cgi-bin/mapsurfer?lon=-96&lat=37&wid=50&ht=24.1
data is a bit out-dated but still interesting... for example
http://tiger.census.gov/cgi-bin/mapsurfer?infact=2&act=out&outfact=2
&on=CITIES&on=places&tlevel=censusb&tvar=income&tmeth=i&mlat=&mlon=
&msym=bigdot&mlabel=&murl=&lat=37.34030&lon=-121.99485&wid=0.062&ht=0.030&
conf=mapnew.con&map.x=255&map.y=214
shows family income data in santa clara area, detailed to blocks.
n*w
发帖数: 3393
4
求链接?
是这个吗? http://www.shopping.hp.com/webapp/shopping/can.do?
storeName=storefronts&landing=display&category=display&a1=Screen+size&v1=27&ca
tLevel=2#bcAnchor
G*******s
发帖数: 10605
5
来自主题: Statistics版 - SAS 求助
呵呵,这么搞W10,W11的都去W1了,定义字符串变量第一次赋值会确定长度,这种情况
你要先定义长度,length Tlevel $3 就可以了
(共0页)