[程式] SAS兩個類別變數合併成一個新類別
想請問一下用這個程式碼產生新類別變數(將兩個類別合併形成一個新類別),然後跑LSD
TUKEY Duncan 怎麼一直跑不出來?
data newdata;
set outbreak;
newwt=.;
If weather=1 and time=1 then newwt=1;
Else if weather=1 and time=2 then newwt=2;
Else if weather=2 and time=1 then newwt=3;
Else if weather=2 and time=2 then newwt=4;
Run;
Proc glm data=newdata;
Class newwt;
Model motor_illegal= newwt;
Means newwt/ lines TUKEY T Duncan alpha=0.05
Run;
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.136.86.189
※ 文章網址: https://www.ptt.cc/bbs/Statistics/M.1558154362.A.EF9.html
※ 編輯: BartJ (36.231.155.32), 05/18/2019 13:34:18
→
05/18 14:13,
5年前
, 1F
05/18 14:13, 1F
推
05/18 14:30,
5年前
, 2F
05/18 14:30, 2F
→
05/18 14:51,
5年前
, 3F
05/18 14:51, 3F
※ 編輯: BartJ (114.32.176.48), 05/18/2019 15:07:26
推
05/18 16:12,
5年前
, 4F
05/18 16:12, 4F