Advertisement
MagnusArias

SAS | Lab 7

Apr 18th, 2018
1,849
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 1.24 KB | None | 0 0
  1. /* ustawienie poczatkowych wartosci dla wykresu */
  2. goptions reset=all htitle=12pt htext=10pt;
  3. title "Stopa 2007 roku";
  4. axis1 label=("Dni w roku") order=('01Jan2007'd to '31Dec2007'd by month) minor=(n=7);
  5. axis2 label=(angle=90 "Kurs %") minor=(n=7);
  6. symbol interpol=join height=100;
  7.  
  8. /* Przyrost absolutny */
  9. data LOTOS.LOTOS_2007_Przyrost;
  10. set LOTOS.LOTOS_2007F;
  11. Przyrost = Kurs_zamkniecia-Kurs_otwarcia;
  12. run;
  13. proc gplot data=Lotos.Lotos_2007_Przyrost;
  14. format nowa_data MONNAME.;
  15. plot Przyrost*nowa_data / haxis=axis1 vaxis=axis2;
  16. run;
  17.  
  18. /* Przyrost względny */
  19. data LOTOS.LOTOS_2007_PrzyrostWzgledny;
  20. set LOTOS.LOTOS_2007F;
  21. Przyrost_wzgledny = (Kurs_zamkniecia-Kurs_otwarcia)/Kurs_otwarcia;
  22. run;
  23. proc gplot data=Lotos.Lotos_2007_PrzyrostWzgledny;
  24. format nowa_data MONNAME.;
  25. plot Przyrost_wzgledny*nowa_data / haxis=axis1 vaxis=axis2;
  26. run;
  27.  
  28. /* Stopa zwrotu */
  29.  
  30. data LOTOS.LOTOS_2007_Stopa;
  31. set LOTOS.LOTOS_2007F;
  32. Stopa = ((Kurs_zamkniecia-Kurs_otwarcia)/Kurs_otwarcia)*100;
  33. run;
  34. proc gplot data=Lotos.Lotos_2007_Stopa;
  35. format nowa_data MONNAME.;
  36. plot Stopa*nowa_data / haxis=axis1 vaxis=axis2;
  37. run;
  38.  
  39.  
  40. data LOTOS.LOTOS_2007_Odchylenie;
  41. set LOTOS.LOTOS_2007F;
  42. odchyl = std((Kurs_zamkniecia-Kurs_otwarcia)/Kurs_otwarcia)*100;
  43. run;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement