推 west1996: cutoff=控制的是兩碼西元年時要抓哪100年區間,所以 09/23 22:02
→ west1996: cutoff=1970表示要找1970~2069這100年 09/23 22:03
謝謝大大~~
我明白了!
我想再問一個first.variable & last.variable的問題
1.The following SAS program is submitted:
data WORK.TOTAL;
set WORK.SALARY;
by Department Gender;
if First.<_insert_code_> then Payroll=0; Payroll+Wagerate;
if Last.<_insert_code_>;
run;
The SAS data set WORK.SALARY is currently ordered by Gender within
Department. Which inserted code will accumulate subtotals for each Gender
within Department?
以上述這題為例
要算gender在department內的subtotal
如果如同答案所說
if First.Gender then Payroll=0;
就是從第一個gender column內的第一個觀測值開始加總的意思嗎
那 if Last.Gender;
這一行的意思是
就initialize 為0 嗎?
(如果照解答的意思是 first.varialbe就是1 last.variable為0)
那我不懂這一行事省略了什麼動作嗎?
還有一題為:
How many statements does the following SAS program contain?
proc print data=new.prodsale
label double;
var state day price1 price2; where state=’NC’;
label state=’Name of State’; run;
我自己認為是3個 但我沒有答案
不好意思跟大家請教了
謝謝大家~
※ 編輯: AmigoSafin (129.21.69.105), 09/24/2018 02:25:11
※ 編輯: AmigoSafin (129.21.69.105), 09/24/2018 04:06:45