Advertisement
BasicTask

Faktoranalízis SAS

Feb 10th, 2020
2,102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 1.13 KB | None | 0 0
  1. /*Faktoranalízis SAS-ban*/
  2.  
  3. FILENAME REFFILE '/home/vdani08130/faktor multi/2015.csv';
  4.  
  5. proc import datafile=REFFILE out=I2015 dbms=CSV replace;
  6.    delimiter=';';
  7. run;
  8.  
  9. proc contents data=I2015;
  10. run;
  11.  
  12. proc corr data=I2015 out=C2015;
  13. run;
  14.  
  15. proc factor data=I2015 scree;
  16. run;
  17.  
  18. proc factor data=I2015 rotate=varimax;
  19. run;
  20.  
  21. proc factor data=I2015 nfactors=2 ;
  22. run;
  23.  
  24. proc factor data=I2015 nfactors=2 rotate=varimax;
  25. run;
  26.  
  27. proc factor data=I2015 nfactors=2 rotate=varimax out=f2015;
  28. run;
  29.  
  30.  
  31. data f2015(rename=(factor1 = tarsadalmi_hatter factor2 = szocialis_hatter));
  32. set f2015;
  33. run;
  34.  
  35. proc sql;
  36.    create table R2015 as
  37.    select Region, AVG(gdp) as gdp, avg(family) as family, avg(health) as health,
  38.    avg(freedom) as freedom, avg(trust) as trust, avg(generosity) as generosity,
  39.    avg(dystopia) as dystopia from I2015
  40.       group by Region;
  41.  
  42.  
  43.  
  44.  
  45. proc distance data=R2015 out=DR2015 method=Euclid nostd;
  46. var interval(_NUMERIC_);
  47. id Region;
  48. run;
  49.  
  50.  
  51. ods graphics on;
  52. proc mds data=DR2015 condition = row level=log
  53.          dimension=3 pfinal out=RM2015 outres=RMR2015;
  54.  id Region;
  55. run;
  56. ods graphics off;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement