1 / 20

PC baseret dataanalyse og simulering Week2 B

PC baseret dataanalyse og simulering Week2 B. SAS. Procedurer. Delmængder af data II PROCedurer. Eksempel: proc print; where koen=‘F’;. Procedurer. proc contents; proc print;. Procedurer. proc sort; by koen; proc means; proc means; by koen;. Procedurer.

gwyn
Download Presentation

PC baseret dataanalyse og simulering Week2 B

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PC baseret dataanalyse og simulering Week2 B

  2. SAS Procedurer

  3. Delmængder af data II PROCedurer • Eksempel: • proc print; where koen=‘F’;

  4. Procedurer • proc contents; • proc print;

  5. Procedurer • proc sort; by koen; • proc means; • proc means; by koen;

  6. Procedurer • PROC MEANS; • PROC MEANS options; VAR variables; (PROC MEANS laver sit eget output)

  7. Procedurer • output out=; • output out=B mean=meanx; • output out=mysas.helbred2 sum=sumx N=antal mean=mean;

  8. Procedurer • proc univariate; • proc freq; • proc corr;

  9. Hente et datasæt, som så er default • Libname F_sas ‘f:\dataanalyse\week2\SAS_F’; • Data temp; set F_sas.dat85tot;

  10. Proc freq • proc freq; tables alder koen; • proc freq; tables alder * koen;

  11. Proc tabulate • proc tabulate; class alder koen; table alder, koen;

  12. Proc corr • proc corr; var hojde vaegt; Output: Rho = 0, nulhypotese P-værdi, test af om den sande correlation er 0

  13. Proc corr; !-------------------------------! ! Korrelations-koefficienter ! !--------------!----------------! ! r ! korrelation ! !--------------!----------------! ! 0.00 - 0.19 ! meget svag ! ! 0.20 - 0.39 ! svag ! ! 0.40 - 0.69 ! moderat ! ! 0.70 - 0.89 ! staerk ! ! 0.90 - 1.00 ! meget staerk ! !--------------!----------------!

  14. SAS Put og File

  15. SAS - put og file Eksempel: File print; *File “H:/mysas/udfil”; put navn 1-10 @12 foeddag persnr /;

  16. SAS Grafik

  17. SAS / Graph • proc gplot; • proc gchart; • proc g3d; • proc gslide;

  18. Proc gplot • proc corr; var hojde vaegt; symbol1 V=dot C=red I=RL CI=blue; • Proc gplot; plot hoejde*vaegt=1 hoejde*diastole=1; run;

  19. SAS / Graph - æ, ø og å *goptions devmap=winansi keymap=winansi; proc gslide; title F=swiss "Blåbærgrød"; run;

  20. SAS / Graph - fonte med æ, ø og å SIMULATE CENT**** (flere fonte) SWISS**** (flere fonte) , f.eks. Swiss, Swissl m.fl. ZAPF**** (flere fonte)

More Related