SAS 区间函数 INTNX 和 INTCK INTCK/INTNX 可以对date \ datetime\time 格式的时间进行计算,可以使用SASriqi进行日历计算,可以按照间隔递增计算日期, 也可以计算日期之间的时间间隔 参数_牛客网_牛客在手,offer不愁
我在SAS中有以下代码: proc sql; create table play2 as select a.anndats,a.amaskcd,count(b.amaskcd) as experience from test1 as a, test1 as b where a.amaskcd = b.amaskcd and intck('day', b.anndats, a.anndats)>0 group by a.amaskcd, a.ANNDATS; quit; 数据test1具有32个不同...
You may look at the INTNX function to increment and compare as the 'S' option gives the 'same' (for some meanings of same) day. So when you increment a date like 29OCT for 'month' intervals using 'S' you get the dates 29Nov, 29Dec etc. So compare the later date to the base ...