1 / 22

NonParametric Statistics using SAS

NonParametric Statistics using SAS. Objectives. List the components of a SAS program. Open an existing SAS program and run it. SAS Data Set. SAS Programs. A SAS program is a sequence of steps that the user submits for execution. Raw Data.

etan
Download Presentation

NonParametric Statistics using SAS

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. NonParametric Statistics using SAS

  2. Objectives • List the components of a SAS program. • Open an existing SAS program and run it.

  3. SASDataSet SAS Programs A SAS program is a sequence of steps that the user submits for execution. RawData DATA steps are typically used to create SAS data sets. Report DATAStep PROCStep SASDataSet PROC steps are typically used to process SAS data sets (that is, generate reports and graphs, edit data, and sort data).

  4. SAS Programs DATA one; INPUT Name $ Gender $ Runtime Age Weight ; DATALINES; Donna F 8.17 42 68.15 Gracie F 8.63 38 81.87 Luanne F 8.65 43 85.84 Mimi F 8.92 50 70.87 Chris M 8.95 49 81.42 ; RUN; PROC PRINT DATA=one; RUN; PROC REG DATA=one; MODEL Runtime=Weight; RUN; DATAStep PROCSteps

  5. SAS Windowing Environment Interactive windows enable you to interface with SAS.

  6. Exercises • Open the SAS program “example.sas.” • Submit the program and examine the results. • Data for today's class located at • http://www.missouri.edu/~baconr/sas

  7. Objectives • Learn the two fundamental SAS syntax programming rules. • Write a Data Step to read a data file.

  8. Fundamental SAS Syntax Rules • SAS statements have these characteristics: • usually begin with an identifying keyword • always end with a semicolon DATA staff; INPUTLastName $ FirstName $ JobTitle $ Salary; DATALINES; …insert text here… RUN; PROC PRINTDATA=staff; RUN;

  9. Example of a typical text data set. Name Gender Runtime Age Weight Donna F 8.17 42 68.15 Gracie F 8.63 38 81.87 Luanne F 8.65 43 85.84 Mimi F 8.92 50 70.87 Chris M 8.95 49 81.42

  10. Creating a SAS data set: The Data Step DATA one; INPUT Name $ Gender $ Runtime Age Weight; DATALINES; Donna F 8.17 42 68.15 Gracie F 8.63 38 81.87 Luanne F 8.65 43 85.84 Mimi F 8.92 50 70.87 Chris M 8.95 49 81.42 ; RUN; PROC PRINT DATA=one; RUN;

  11. Veneer Data brand wear Acme 2.3 Acme 2.1 Acme 2.4 Acme 2.5 Acme 2.2 Acme 2.0 Champ 2.2 Champ 2.3 Champ 2.4 …

  12. Exercises • Write a SAS program to read the data located in the “veneer.txt“ text file.

  13. Nonparametric ANOVA

  14. Objectives • Recognize when nonparametric analysis is appropriate. • Perform nonparametric analysis with the NPAR1WAY procedure.

  15. Nonparametric Analysis Nonparametric analyses are those that rely only on the assumption that the observations are independent. • Normality not required • Variances do not have to be equal • Small sample sizes ok • Dependant variable can be ordinal

  16. Hypotheses of Interest

  17. Rank Scores

  18. Median Scores Median = 8.5

  19. THE NPAR1WAY PROCEDURE PROCNPAR1WAY DATA=SAS-data-set <options>; CLASSvariable; VARvariables; RUN;

  20. Veneer Data brand wear Acme 2.3 Acme 2.1 Acme 2.4 Acme 2.5 Acme 2.2 Acme 2.0 Champ 2.2 Champ 2.3 Champ 2.4 …

  21. Veneer Example Are there differences between the durability of brands of wood veneer?

  22. SAS Procedures • The nonparm.sas program contains several of the most common SAS procedures used your class. • During the remainder of this class, we will open that SAS program discuss the function of each of the procedures and demo it in SAS.

More Related