📄 pathreg.sas
字号:
options nodate nonumber;
title 'Path Analysis';
DATA pathreg(type=corr);
input _type_ $ _name_ $ x1-x5;
CARDS;
CORR x1 1.00 .635 .451 .344 .347
CORR x2 . 1.00 .494 .424 .455
CORR x3 . . 1.00 .556 .579
CORR x4 . . . 1.00 .619
CORR X5 . . . . 1.00
N df 120 120 120 120 120
;
title2 'Below is full model of path analysis';
PROC REG;
MODEL x2=x1/STB;
MODEL x3=x1 x2/STB;
MODEL x4=x1 x2 x3/STB;
MODEL x5=x1 x2 x3 x4/STB;
run;
title2 'Below is restricted model of path analysis';
PROC REG;
MODEL x2=x1/STB;
MODEL x3=x1 x2/STB;
MODEL x4=x3/STB;
MODEL x5=x3 x4/STB;
run;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -