pathreg.sas
来自「SAS for Windows统计分析系统教程,里面有源码」· SAS 代码 · 共 27 行
SAS
27 行
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 + =
减小字号Ctrl + -
显示快捷键?