看板 Statistics 關於我們 聯絡資訊
[軟體程式類別]: 請填入軟體程式類別,例如:SAS、SPSS、AMOS、R、STATA、EVIEWS...等 SAS [程式問題]: 資料處理、迴歸、敘述統計、logistic、probit...等 資料處理 [軟體熟悉度]: 請把以下不需要的部份刪除 新手 [問題敘述]: 請詳盡敘述遭遇到的問題,可能的話,分點敘述你要處理的流程 能夠分點敘述處理流程,基本上在撰寫程式或者跑統計時是相當有幫助的 甚至有經驗的人可以藉此告知你步驟是否錯誤 大家好 不好意思考試在即 再跟大家請教一下一題額外題目 如下 Q: cutoff year=1970那么***60是多少 A: 2060 從1970加60年應該不是2060啊 是我誤會了***的意思嗎 還請大家解惑 感謝大家 抱歉po了幾篇關於考試的 -- -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 8.41.66.215 ※ 文章網址: https://www.ptt.cc/bbs/Statistics/M.1537710814.A.983.html
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