搜索
人大经济论坛 附件下载

附件下载

所在主题:
文件名:  HW5.pdf
资料下载链接地址: https://bbs.pinggu.org/a-764296.html
附件大小:
57.72 KB   举报本内容
一道SAS基础题重金悬赏,求程序. (题中的参考帮助来自 SAS Certification Prep Guide Base Programming for SAS 9的第14章)

Assignment:


Create a data set with the following attributes. Arrays and material from chapter 14 should help.

Use a do loop to create a variable i that goes from 0 to 9.
 Use a do loop to create a variable j that goes from 0 to 9 for each value of i.
 Create a variable k that is the sum of i times 10 plus j. (k will count from 0 to 99).
 Create an array x of 10 variables named x1 through x10. For each observation, the value of x1 is 1 divided by the current value of k, x2 is 2 over k, x3 is 3 over k, and so on.
Create a variable m that takes the value of `ODD' for odd value of k and `EVEN' for even values of k.
 Create a variable n that takes the value of i written out (i.e. n = `Zero' for i = 0).
 Create a variable o that takes the value of j written out (i.e. o = `Zero' for j = 0).
 Create a variable p that concatenates n and o (no spaces) and converts it to all uppercase.
 Create a variable q that removes all instances of the substring `ON' from p and replaces them with `NO'.
Create a variable r that takes only the rst two characters of q
 Output to the data set for every value of k.


As a hint, the data set should have 100 observations and 19 variables.



    熟悉论坛请点击新手指南
下载说明
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。
2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。
3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。
(如有侵权,欢迎举报)
二维码

扫码加我 拉你入群

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

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

GMT+8, 2025-12-26 20:01