Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Faktoranalízis SAS-ban*/
- FILENAME REFFILE '/home/vdani08130/faktor multi/2015.csv';
- proc import datafile=REFFILE out=I2015 dbms=CSV replace;
- delimiter=';';
- run;
- proc contents data=I2015;
- run;
- proc corr data=I2015 out=C2015;
- run;
- proc factor data=I2015 scree;
- run;
- proc factor data=I2015 rotate=varimax;
- run;
- proc factor data=I2015 nfactors=2 ;
- run;
- proc factor data=I2015 nfactors=2 rotate=varimax;
- run;
- proc factor data=I2015 nfactors=2 rotate=varimax out=f2015;
- run;
- data f2015(rename=(factor1 = tarsadalmi_hatter factor2 = szocialis_hatter));
- set f2015;
- run;
- proc sql;
- create table R2015 as
- select Region, AVG(gdp) as gdp, avg(family) as family, avg(health) as health,
- avg(freedom) as freedom, avg(trust) as trust, avg(generosity) as generosity,
- avg(dystopia) as dystopia from I2015
- group by Region;
- proc distance data=R2015 out=DR2015 method=Euclid nostd;
- var interval(_NUMERIC_);
- id Region;
- run;
- ods graphics on;
- proc mds data=DR2015 condition = row level=log
- dimension=3 pfinal out=RM2015 outres=RMR2015;
- id Region;
- run;
- ods graphics off;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement