全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
779 0
2013-10-24

不知道以下代码是什么意思:

求指点:

proc sql;

create tablesasuser.qiang_pom3 as

select a.*, b.xbeta

fromsasuser.qiang_pom3 a left join temp3 b

on a.hotel_id =b.hotel_id and a.customer_id=b.customer_id and a.review_date = b.review_date;

run;

/* convert toinverse mill ratio */

datasasuser.qiang_pom3;

setsasuser.qiang_pom3;

adjustment =pdf('normal', xbeta)/(1-cdf('normal', xbeta));

run;

datasasuser.qiang_pom3;

set  sasuser.qiang_pom3;

by hotel_idcustomer_id;

lag_adjustment= lag(adjustment);

iffirst.customer_id then lag_adjustment = 0;

run;


二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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