全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1059 4
2014-06-10

下载了一个SAS的代码,在运用中需要进行简单的修改,但是我应该如何理解教程里的这句话呢??各位大神求指教!!

All user inputs are specified in the fileC:\Faultline\FL_Code\FL_Code_parameters.txt.

Here you can specify which dataset to use,and what variables to use for the faultline calculations, what to name theoutput files, etc.
以下是文档 C:\Faultline\FL_Code\FL_Code_parameters.txt.的内容
*/

/* Specify a Working Directory for SAS dataset files*/
LIBNAME FLDSets 'C:\FaultLine\FL_SASDataSets';
LIBNAME FLCode 'C:\FaultLine\FL_Code';
LIBNAME FLOut 'C:\FaultLine\FL_Output';

/* List all the variables in the raw data file
/* (no commas between variable names, semicolon at end of list)*/
%let list_of_all_variables = group member gender1 gender2 race1 race2 race3  age educ
tenure function1 function2 function3 function4;

/* List all the variables you want to use int he faultline calculations */
/* (no commas between variable names, semicolon at end of list)*/
%let list_of_faultline_variables = age gender1 gender2 race1 race2 tenure;

/* Specify the number of groups in the file (gnum= number of groups) */
%let gnum=4;

/* Specify the group identifier variable */
%let group_id_variable= group;

/* File where Raw data is found
/* (first line is assumed to be column headers, data starts reading in in row 2) */
%let rawdatafile='C:\Faultline\FL_Data\FL_testdata.csv';

/* File where rescaling factors are listed
/*(Rescaling factors for the variables in list_of_faultline_variables) */
/*(first line is assumed to be column headers, data starts reading in in row 2) */
/*(Rescaling factors, r, are of the form: newdata=rawdata*r   */
/* so if you want newdata=rawdata/10, use r=1/10=.10   */
%let rescalingfile='C:\Faultline\FL_Data\FL_testrescaling.txt';

/* File for output of faultline scores and distances */
%let resultfile='C:\Faultline\FL_Output\FL_testoutput.txt';

/* File for output of rawdata (to verify that SAS read it in correctly) */
%let rawdatafile_out='c:\Faultline\FL_Output\FL_rawdata_out.txt';
/* File for output of the rescaling factors (to verify that SAS read it in correctly) */
%let rescalingfile_out='c:\Faultline\FL_Output\FL_rescaling_out.txt';


二维码

扫码加我 拉你入群

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

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

全部回复
2014-6-11 00:21:15
xiaoguotuan 发表于 2014-6-10 23:59
下载了一个SAS的代码,在运用中需要进行简单的修改,但是我应该如何理解教程里的这句话呢??各位大神求指教 ...
看不懂
二维码

扫码加我 拉你入群

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

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

2014-6-11 10:50:25
wangsanchuan 发表于 2014-6-11 00:21
看不懂
谢谢!!
附件列表

faultline.zip

大小:941.63 KB

 马上下载

这是我需要用的SAS代码的相关资料

二维码

扫码加我 拉你入群

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

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

2014-6-11 13:43:48
这段code是被其他code调用的参数设置吧,本身这段code没什么用啊,从宏变量上看应该是申明数据集、日志等文件的存储位置而已
二维码

扫码加我 拉你入群

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

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

2014-6-13 14:25:41
sypan_forum 发表于 2014-6-11 13:43
这段code是被其他code调用的参数设置吧,本身这段code没什么用啊,从宏变量上看应该是申明数据集、日志等文 ...
厉害!
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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