-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpls_regression.sas
More file actions
26 lines (20 loc) · 790 Bytes
/
pls_regression.sas
File metadata and controls
26 lines (20 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%let path=your/path/here;
libname multivariate "&path";
ods graphics on;
data concrete;
set multivariate.concrete;
run;
/*
Partial Least Squares Regression
PLS has been implemented using the NIPALS algorithm.
As the number of observations is small (n=103), we can use
leave-one-out cross-validation.
Water increases workability at the expense of compressive strength.
Fly ash and concrete both increase compressive strength.
Fine and coarse aggregates have an inverse relationship with one
another. Plasticizer has minimal effects on the Y matrix.
*/
proc pls data = concrete method = pls(algorithm=nipals)
cv=one plot=(vip xyscores xscores parmprofiles dmod);
model slump--compressive_strength = cement--fine_aggregate;
run;