Presentation is loading. Please wait.

Presentation is loading. Please wait.

Statistical Analysis for Animal Production Sciences (603 & 611 AAP) Biostatistics-SAS, 2010 Dr. Hosam M. Safaa Associate Professor Animal Production Department.

Similar presentations


Presentation on theme: "Statistical Analysis for Animal Production Sciences (603 & 611 AAP) Biostatistics-SAS, 2010 Dr. Hosam M. Safaa Associate Professor Animal Production Department."— Presentation transcript:

1 Statistical Analysis for Animal Production Sciences (603 & 611 AAP) Biostatistics-SAS, 2010 Dr. Hosam M. Safaa Associate Professor Animal Production Department Faculty of Agriculture, Cairo University

2 خطوات تحميل برنامج الـ SAS الإصدار التاسع 2004 (v9, 2004) 1) تعديل التاريخ إلي أغسطس 2004 2) فتح مجلد Setup desk ثم ملف setup.exe 3) الإجابة بـ OK علي مربع الحوار 4) إختيار أمر Install SAS software 5) الإجابة علي مربع الحوار Install Shield Wizard 6) الإجابة بـ Next ثم Finish 7) إعادة الخطوات من 1-5 حتي تظهر كلمة Next بدلاً من كلمة Finish

3 تابع خطوات تحميل برنامج الـ SAS 8) الإجابة علي مربع الحوار بـ Browse 9) إختيار وفتح مجلد SAS 9.0 License And Date Crack 10) إختيار الملف الأوسط sas9834961.exe ثم Next 11) الإجابة علي مربع الحوار Wizard => Language selections بـ English ثم 4 مرات Next حتي تصل إلي Select component 12) يتم إختيار SAS software (System-Academic) ثم Next 13) سيطلب مربع الحوار Software Disk1 فيتم فتح Browse=> مجلد SAS v9=> مجلد Software Disk1 ثم OK مرتين

4 تابع خطوات تحميل برنامج الـ SAS 14) سيطلب مربع الحوار Software Disk2 فيتم فتح Browse=> مجلد SAS v9=> مجلد Software Disk2 ثم OK مرتين 15) سيطلب مربع الحوار Software Disk3 فيتم فتح Browse=> مجلد SAS v9=> مجلد Software Disk3 ثم OK مرتين 16) سيطلب مربع الحوار SAS/Secure Windows فيتم فتح Browse=> مجلد SAS v9=> مجلد SAS/Secure Windows ثم OK مرتين 17) سيطلب مربع الحوار SAS/Shared Components فيتم فتح Browse=> مجلد SAS v9=> مجلد SAS/Shared Compo ثم OK مرتين

5 تابع خطوات تحميل برنامج الـ SAS 18) الرد علي مربع الحوار Confirm Update بـ Yes بعد إختيار Use this response for all files 14) سيطلب مربع الحوار Setup desk فيتم فتح Browse=> مجلد SAS v9=> مجلد Setup desk ثم OK مرتين 15) الرد علي مربع حوار Setup complete بـ Finish بعد إختيار Run SAS now و View P.I.D. 16) ستظهر شاشة البرنامج بها خمس نوافذ ومربع حوار لعرض المرشد SAS guide 17) بهذا يكون قد تم تحميل البرنامج وتشغيله، ويراعي إعادة التحميل مرة أخري في حالة توقف الجهاز أو عدم إكتمال التحميل حتي التشغيل

6 Statistical Analysis System (SAS)  SAS was designed to perform statistical analyses and report the results.  The SAS display manager system screen consists of 3 main windows: 1- Program Editor is where you enter the SAS statements to be executed. 2- LOG is very useful for debugging programs and contain all the error messages. 3- Output is where results output by SAS procedures are displayed.

7 SAS steps  SAS able to:  Perform the data analysis method.  Solve data analysis problems.  Cover several basic types of data analysis.  SAS steps consist of: 1- DATA steps are the sentences (statements) which organize, find and summarize data. 2- PROC steps are the statements which perform the analysis on the organized data.

8 SAS statements (Language)  DATA and PROC steps consists of SAS statements.  Most statements have one or more keywords that must be spelled exactly as shown.  The SAS language has its own vocabulary and syntax.  Syntax rule: SAS statements must end with semi column “;”).  Some words have special meaning.

9 SAS statements (Language)  ne = means not equal.  $ = refers to non numeric variables.  @@ = refers to non columned data.  Dots “.” = refer to missed data.  Variable = Effect or Trait.  Data = Levels of effects or observations of Traits.

10 SAS statements (Language)  probbnml = Binomial distribution probability.  poisson = Poisson distribution probability.  probnorm = Normal distribution probability.  tvalue, tinv = T “Student=Gosset” probability.  probf = F “Fisher” distribution probability.  probchi = Chi square distribution probability.

11 Rules of SAS names  Must start with a letter.  Total length of the SAS name should not exceed 8 character.  Must not contain any embedded blanks

12 SAS spacing rules  The spacing of statements and of parts of statement is NOT important in SAS language.  You can put several statements in one line.  You can spread a statement in several lines.  You can put space between/among statements or not.  You can indent statements or not.  You should put at least one space (blank) between words in the SAS statement.

13 SAS DATA Step The DATA step is your primary tool for reading and processing data in the SAS System. The DATA step provides a powerful general purpose programming language that enables you to perform all kinds of data processing tasks. The DATA step is documented in SAS Language Reference.

14 DATA Steps A SAS data set has some specific characteristics and rules that must be followed to be able to analyzed using SAS software.  Title statement gives a title for output pages.  Footnote statement gives a footnote for output pages.  Data statement gives a name to the data.  Input statement tells SAS software what whether the variable have numeric or character values and where the variable are located.

15 DATA Steps  Label statement allows to label the variable.  Format statement allows to label the data values (levels or observations) of the variable, but need a PROC FORMAT statement.  IF statement tells any conditions for any of the variables in the input statement.  Cards statement tells the software that the data lines follow.  Data lines entered according to the input statement after cards statement.  Null statement after the data lines.

16 PROC Steps PROC is an abbreviation of procedure and tells the SAS software which procedure or type of analysis apply to the data.  Options statement setup output pages by allowing you to set certain system options.  PROC Format creates formats for variable’s values.  PROC Print allows to print data set in output windows.  PROC Sort allows to reordered the observations from data set.  PROC Means calculates your date to get summarizing statistics (Mean, mode, median, SD, min, max …ect).

17 PROC Steps  PROC Univariate allows for many descriptive statistics, comparing paired groups, testing for normality and producing normality plots.  PROC Chart allows for charts and histogram.  PROC Freq allows for many frequency and descriptive statistics.  Run statement executes the statements immediately above it when SAS was run.  Endsas statement exits from the SAS software.

18 PROC Steps  PROC ANOVA allows for analysis of variances statistics.  PROC GLM allows for analysis of variances statistics (General Linear Model).  PROC MIXED allows for analysis of variances statistics (Repeated measures).  PROC CATMOD allows for analysis of variances statistics (Chi Square).  PROC REG allows for regression statistics.  PROC STEPWISE allows for stepwise regression statistics.  PROC CORR allows for correlation statistics.

19 شكرا لحســن الاستماع Thanks


Download ppt "Statistical Analysis for Animal Production Sciences (603 & 611 AAP) Biostatistics-SAS, 2010 Dr. Hosam M. Safaa Associate Professor Animal Production Department."

Similar presentations


Ads by Google