楼主: xiaoguotuan
1083 4

各位大神求指教 [推广有奖]

  • 0关注
  • 0粉丝

高中生

82%

还不是VIP/贵宾

-

威望
0
论坛币
562 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
339 点
帖子
6
精华
0
在线时间
63 小时
注册时间
2013-5-7
最后登录
2016-3-29

楼主
xiaoguotuan 发表于 2014-6-10 23:59:39 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

下载了一个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';


二维码

扫码加我 拉你入群

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

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

关键词:求指教 Calculations Calculation parameters Variables specified files 如何

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

藤椅
xiaoguotuan 发表于 2014-6-11 10:50:25
wangsanchuan 发表于 2014-6-11 00:21
看不懂
谢谢!!

faultline.zip
下载链接: https://bbs.pinggu.org/a-1570634.html

941.63 KB

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

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

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

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 22:17