精華區beta Psychology95 關於我們 聯絡資訊
另外一種寫法 options nocenter nodate; data hw2; do subj = 1 to 20; do place = 1 to 3; input score @; if subj <=10 then gender='m'; if subj > 10 then gender='f'; output; end; end; cards; 2 5 6 3 4 3 2 6 9 6 6 6 4 5 5 1 2 3 2 4 8 3 3 3 2 2 9 1 1 5 6 7 7 5 5 5 3 4 7 6 8 8 8 8 9 6 5 4 7 1 1 8 2 2 9 3 2 7 5 5 ; proc ANOVA; class gender subj place; model score = gender subj (gender) place gender*place place*subj(gender); test H=gender E=subj(gender); test H=place gender*place E=place*subj(gender); proc means nway noprint; class place gender; var score; output out=means mean=; proc plot; plot score*place=gender; run; -- Ω ████ █ blackj.dorm9.NCTU.edu.tw ◢█◣ █ ◢█◣ ◢██ ◢██═╮ ══ ══╮ : ▆ █ █ █ █ █ █ █ │ ══ │ ◥█◤ ◥█◤ ◥██ ◥█◥═╡ ══ ╒═╯ : ○●○●○●○●○●○● │ │╭═╮│ : 140.113.95.33 ╘════╛╰═╯╰═╛ -- ※ 發信站: 批踢踢實業坊(ptt.csie.ntu.edu.tw) ◆ From: 219.68.24.161 ※ 編輯: joda 來自: 219.68.24.161 (04/24 23:03)
dreamingasa:嗚嗚...我不會用迴圈啦... 推140.112.249.219 04/24
joda:其實主要是有沒有用repeated指令的差 推 219.68.24.161 04/24
dreamingasa:用迴圈的話就不用打我下面那堆重新定義了ꐠ推140.112.249.219 04/24
joda:也是啦 推 219.68.24.161 04/24