Advertisement
riabcis

Untitled

May 24th, 2018
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. filename failas '/home/deividasriabcin0/sasuser.v94/Projektas/Task4/3data.dat';
  2. data duomenys;
  3. infile failas;
  4. input SBSTREC $1-2 SBPRVPV $3-4 GNDR $5-6 GNDR2 $7-8 HINCTNTA $9-10 HINCFEL;
  5. run;
  6.  
  7. data duom1;
  8. set duomenys;
  9. keep gndr gndr2;
  10. if(gndr=9) then delete;
  11. if(gndr2=6) or (gndr2=7) or (gndr=9) then delete;
  12. run;
  13.  
  14. data duom2;
  15. set duomenys;
  16. keep SBSTREC SBPRVPV;
  17. if(SBSTREC=9) or (SBSTREC=8) or (SBSTREC=7) then delete;
  18. if(SBPRVPV=8) or (SBPRVPV=7) or (SBPRVPV=9) then delete;
  19. if(SBSTREC=1) or (SBSTREC=2) then SBSTREC=2;
  20. run;
  21.  
  22. data duom3;
  23. set duomenys;
  24. keep HINCTNTA HINCFEL;
  25. if(HINCTNTA=77) or (HINCTNTA=88) or (HINCTNTA=99) then delete;
  26. if(HINCFEL=8) or (HINCFEL=7) or (HINCFEL=9) then delete;
  27. if(HINCFEL=1) or (HINCFEL=2) then HINCFEL=2;
  28. run;
  29.  
  30. proc freq data = duom1;
  31. tables gndr*gndr2 / chisq;
  32. run;
  33.  
  34. proc freq data = duom2;
  35. tables SBSTREC*SBPRVPV / chisq;
  36. run;
  37.  
  38. proc freq data = duom3;
  39. tables HINCTNTA*HINCFEL / chisq;
  40. run;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement