楼主: jlwjlwjlw
1896 2

[问答] iml中数据读取的问题 [推广有奖]

  • 0关注
  • 5粉丝

学科带头人

72%

还不是VIP/贵宾

-

威望
1
论坛币
10120 个
通用积分
5169.9223
学术水平
77 点
热心指数
125 点
信用等级
61 点
经验
86537 点
帖子
965
精华
0
在线时间
3626 小时
注册时间
2008-9-7
最后登录
2023-9-21

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
在使用SAS/iml的过程中想要读取一个数据,但是发现程序报错,然后想了一下可能是SAS/iml不能进行这样的操作。现将我的程序写出来希望得到高人的指点!
proc iml;
a={-1/SQRT(2) 1/SQRT(2) 0 0, -1/SQRT(6) -1/SQRT(6) 2/SQRT(6) 0,-1/SQRT(12) -1/SQRT(12) -1/SQRT(12) 3/SQRT(12)};
print a1;quit;
这里面矩阵a中的元素不能是函数的运算是吧?如果我仍然想进行这样的操作的话有什么方法可以解决呢?
二维码

扫码加我 拉你入群

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

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

关键词:数据读取 print quit 什么方法 ROC 矩阵的数据读取

沙发
novice505 发表于 2010-12-15 22:24:56 |只看作者 |坛友微信交流群
1# jlwjlwjlw
不知道这样行不行?
proc iml;
a={-1 1 0 0,
    -1 -1 2 0,
    -1 -1 -1 3};
b=a[1,]/sqrt(2)//a[2,]/sqrt(6)//a[3,]/sqrt(12);
print b;
quit;

The values you input can be any of the following:
  • a number, with or without decimal points, possibly in scientific notation (such as 1E-5)
  • a character string. Character strings can be enclosed in either single quotes (') or double quotes ("), but they do not need to have quotes. Quotes are required when there are no enclosing braces or when you want to preserve case, special characters, or blanks in the string. If the string has embedded quotes, you must double them (for example, WORD='Can''t'). Special characters can be any of the following: ?   =   *   :   (   ).
  • a period (.), representing a missing numeric value
  • numbers in brackets ([ ]), representing repetition factors

使用道具

藤椅
jlwjlwjlw 发表于 2010-12-16 13:20:36 |只看作者 |坛友微信交流群
这个结果太好了!一直以来,SAS的基本函数还没搞清楚,看到这个结果后发现很多基础的命令还是要掌握好!谢谢啦!

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-6-24 05:24