Summary Statistics/Simple Graphs in SAS/EXCEL/JMP.

Slides:



Advertisements
Similar presentations
Basics of Biostatistics for Health Research Session 2 – February 14 th, 2013 Dr. Scott Patten, Professor of Epidemiology Department of Community Health.
Advertisements

How to Import an Excel File Using the SAS Import Wizard SAS 9 for Windows.
Individual Graphs in Excel. Go to Intranet/Interventions/ CICO T2 Put in time frame and click boxes “Has CICO Record” and “Report Mode.”
Obtaining Summary Statistics and Plots by Treatment Groups in EXCEL.
Statistical Methods Lynne Stokes Department of Statistical Science Lecture 7: Introduction to SAS Programming Language.
DAY 8: MICROSOFT EXCEL – CHAPTER 5 Aliya Farheen February 5, 2015.
BCIS IB (Test 2) Excel Lessons 4 – 8 Press space bar to Advance Frame.
Excel Lesson 1 Excel Basics. Task 1  Goals  Learn about Excel  Start Excel  Explore the Excel screen  Explore the Excel workbook  Explore the worksheet.
Fundamental Features of Graphs All graphs have two, clearly-labeled axes that are drawn at a right angle. –The horizontal axis is the abscissa, or X-axis.
Click on File - > Open. Click on Database Click on “Open”
FIRST COURSE Excel Tutorial 4 Working with Charts and Graphics.
Today: Run SAS programs on Saturn (UNIX tutorial) Runs SAS programs on the PC.
Microsoft Excel 2010 Chapter 7
Integrating Access with the Web and with Other Programs.
Descriptive Statistics In SAS Exploring Your Data.
Graphing With Excel Presented by Frank H. Osborne, Ph. D. © 2008 ID 2950 Technology and the Young Child.
Using Excel for Data Analysis in CHM 161 Monique Wilhelm.
A Simple Guide to Using SPSS© for Windows
1 Committed to Shaping the Next Generation of IT Experts. Chapter 3 – Graphs and Charts: Delivering a Message Robert Grauer and Maryann Barber Exploring.
A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon...
Data Tutorial Tutorial on Types of Graphs Used for Data Analysis, Along with How to Enter Them in MS Excel Carryn Bellomo University of Nevada, Las Vegas.
SPSS Statistical Package for the Social Sciences is a statistical analysis and data management software package. SPSS can take data from almost any type.
Assumption of Homoscedasticity
Introduction to SPSS Short Courses Last created (Feb, 2008) Kentaka Aruga.
How To Make Graphs in Microsoft Excel Outline Making Bar Graphs Making Scatter Plots – 1 series Making Scatter Plots – Multiple Series.
Introduction to SPSS (For SPSS Version 16.0)
Instructor: Professor Cora Martinez, PhD Department of Civil and Environmental Engineering Florida International University.
Examining Univariate Distributions Chapter 2 SHARON LAWNER WEINBERG SARAH KNAPP ABRAMOWITZ StatisticsSPSS An Integrative Approach SECOND EDITION Using.
Tutor: Prof. A. Taleb-Bendiab Contact: Telephone: +44 (0) CMPDLLM002 Research Methods Lecture 9: Quantitative.
Word Processing ADE100- Computer Literacy Lecture 12.
C51BR Applications of Spreadsheets 1 Chapter 16 Getting Started Making Charts.
Data Analysis Using SPSS
Introduction to SAS BIO 226 – Spring Outline Windows and common rules Getting the data –The PRINT and CONTENT Procedures Manipulating the data.
1 Experimental Statistics - week 4 Chapter 8: 1-factor ANOVA models Using SAS.
LINDSEY BREWER CSSCR (CENTER FOR SOCIAL SCIENCE COMPUTATION AND RESEARCH) UNIVERSITY OF WASHINGTON September 17, 2009 Introduction to SPSS (Version 16)
Ranjeet Department of Physics & Astrophysics University of Delhi Working with Origin.
Exploring Excel 2003 Revised - Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 3 – Graphs and Charts: Delivering a.
The introduction to SPSS Ⅱ.Tables and Graphs for one variable ---Descriptive Statistics & Graphs.
A Picture Is Worth A Thousand Words. DAY 7: EXCEL CHAPTER 4 Tazin Afrin September 10,
SAS lecture - week 31 Some Basics of CQUEST The operating system in the ESC lab (1046) is Linux. The operating system in RW labs (107/109 and 211) is Windows.
Honors Physics Lab Journals Graphing. Lab Journal Entries  Number pages in consecutive order  Date all entries  Title all activities and investigations.
ISU Basic SAS commands Laboratory No. 1 Computer Techniques for Biological Research Animal Science 500 Ken Stalder, Professor Department of Animal Science.
Introduction to SPSS. Object of the class About the windows in SPSS The basics of managing data files The basic analysis in SPSS.
Graphs in Physics PowerPoint #4. A graph is… A convenient way to show data.
Developed By Information Technology Services University Of Saskatchewan.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
1 An Introduction to SPSS for Windows Jie Chen Ph.D. 6/4/20161.
SPSS Instructions for Introduction to Biostatistics Larry Winner Department of Statistics University of Florida.
DAY 6: MICROSOFT EXCEL – CHAPTER 3 Sravanthi Lakkimsetty September 2, 2015.
Chapter 5 Working with Multiple Worksheets and Workbooks
SPSS- Tutorial The following power-point slides show you how to use some of the features in SPSS. A survey of 20 randomly selected companies asked them.
CRSD Technology Training Tony Judice. Quick Access Toolbar – can be modifiedSave as… allows you to save the file to a different location and also as an.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Working with Data Lists.
Mr. Magdi Morsi Statistician Department of Research and Studies, MOH
1. Tables, Charts, and Graphs Microsoft Word & Excel 2003.
Copyright © 2005 by Nelson, a division of Thomson Canada Limited 14-0 EXCEL CHAPTER 14 PHILIP BEDIENT.
Elementary Analysis Richard LeGates URBS 492. Univariate Analysis Distributions –SPSS Command Statistics | Summarize | Frequencies Presents label, total.
Excel Part 4 Working with Charts and Graphics. XP Objectives Create an embedded chart Work with chart titles and legends Create and format a pie chart.
Excel Part 4 Working with Charts and Graphics. XP Objectives Create an embedded chart Work with chart titles and legends Create and format a pie chart.
Chapter 28. Copyright 2003, Paradigm Publishing Inc. CHAPTER 28 BACKNEXTEND 28-2 LINKS TO OBJECTIVES Table Calculations Table Properties Fields in a Table.
1 EPIB 698C Lecture 1 Instructor: Raul Cruz-Cano
EMPA Statistical Analysis
By Dr. Madhukar H. Dalvi Nagindas Khandwala college
DEPARTMENT OF COMPUTER SCIENCE
LINDSEY BREWER CSSCR (CENTER FOR SOCIAL SCIENCE COMPUTATION AND RESEARCH) UNIVERSITY OF WASHINGTON September 17, 2009 Introduction to SPSS (Version 16)
Statistical Analysis with Excel
Statistical Analysis with Excel
Microsoft Office Access 2003
Microsoft Office Access 2003
Program This course will be dived into 3 parts: Part 1 Descriptive statistics and introduction to continuous outcome variables Part 2 Continuous outcome.
Presentation transcript:

Summary Statistics/Simple Graphs in SAS/EXCEL/JMP

Setting up Program in SAS In a CIRCA Lab (or maybe in your Department): –START -> Programs -> SAS -> (Whatever Version) –Three primary Windows will appear (ignore Explorer): Editor - This is a standard editor where you will type in or download the commands that constitute your program Log - This is where the information regarding the running of a program appears. It also will give error messages Output - Gives results of SAS program (hopefully) –Enter a program in the Editor, then save it (filename.sas), then run it by clicking on Submit (person running image) –Text results will appear in the Output and can be save to a text (List) file and should be named (fulename.lst). Be sure to fully specify the.lst extension or it can overwrite program. –Graphics output can be Copied and Pasted into word processors

Writing a SAS Program Statements end with semi-colons and can be more than one line long. OPTIONS Statements can be used for many things, most importantly to frame the page dimensions. DATA steps are where data are entered (or external datasets are targeted from), variable names assigned, and any new variables created. –Internal datasets are included in program –External datasets are accessed using an INFILE statement PROC Steps are procedures that act on variables defined or created in DATA steps.

Basic Form of a SAS Program Options ps=54 ls=80; /* frames page to approx. 8.5x11 */ data one; /* This dataset will be called “one” */ input y group; /* Each line will contain two variables on a unit */ datalines; /* The data begins on the next line */ ; /* End of data on previous line */ run; proc print; /* Prints dataset */ proc univariate; var y; /* Full-blown summary of variable y */ proc means; class group; var y; /* Mean, SD, min, max of y, for each group */ proc gplot; plot y*group; /* Scatterplot of y versus group */ proc boxplot; plot y*group; /* Side-by-side boxplots of y by group */ quit; /* Ends Program */

Using EXCEL for Summary Statistics Data Analysis ToolPack has a Descriptive Statistics option which will compute many summary statistics Many statistical options also available. See Some Useful EXCEL Functions on class website When obtaining summaries for multiple groups, it’s helpful to create a separate column for each group and copy summary commands across columns

Drawing Boxplots in EXCEL (I) Step 1: Place data for the various groups in different columns (say A,B,C if there are 3 groups) Step 2: Obtain the five number summary for each column. –q1: =percentile(range,0.25) –min: =min(range) –median: =percentile(range,0.5) –max: =max(range) –q3: =percentile(range,0.75) Step 3: Create a table containing these results (using numbers!)

Drawing Boxplots in EXCEL (II) In Excel 97/2000/2003: –Highlight whole table, including numbers and labels, select Chart Wizard –Choose Line Chart –At step 2, choose Plot by Rows (Columns is default) –On each data series, right-click, and use Format Data Series and remove connecting Lines by selecting None –Right-click on any data series, use Format Data Series, then Options tab and click on switches for High-Low lines and Up-Down Bars –There will not be a line at median, but will be point. Experiment with colors

Example: Impulse Rates of 5 Mollusc Species Original PlotPlot After Removing Lines

Example: Impulse Rates of 5 Mollusc Species

Obtaining Plots in EXCEL Enter data representing the variable on the horizontal axis in the left-most column in the field to be used for data in plot. Enter data representing the variable(s) on the vertical axis in columns directly to the right-hand side of the column containing the variable to be plotted on the horizontal axis Click on Chart Wizard, then XY(Scatter), then choose the desired style (points, smoothed lines, jagged lines, etc). Follow steps on dialog box. You can change scales on final graph by right-clicking on the X- and Y-axes and selecting scale. Many other options exist to improve plot quality

Example - Tombstone Weathering Scatterplot X=100-Year Mean SO2 Concentration of City (ug/m 3 ) Y=Mean Tombstone Surface Recession Rate (mm/100yr)

Example - Interaction Plot of Means Response: Seed Weight (Means of samples of size 6) Factor A: # of fruits on truss (1,2,…,11) Factor B: Position of Truss on plant (Low/High) Goal: Plot Mean versus Factor A w/ separate lines for levels of B

Importing Text Data into JMP Open JMP Select File  Open  Files of Type: Text Import Preview –Select Fixed Width –Click off Table Contains Column Headers –Assign Names to Variables –Click Specify Fields –Highlight the the full field for each variable and click Set Field for each variable (Every “column” should be in exactly one field). Click OK when done. (Alternatively you can directly specify the numbers of columns based on data description file) –Click Apply Settings, then OK

Summarizing a Single Variable in JMP Enter or Import the data in JMP Select Analyze  Distribution Select variable(s) to be summarized and click on Y,Columns If you want these separate for different levels of grouping variable(s), select the variable(s) and click on By Click OK Summary Stats, Outlier boxplot, and horizontal barchart are printed. Click on red arrows for more options Copy and Paste can put output in word processor

Side-by-Side Boxplots in JMP Enter or Import Data into JMP Make any factor variables nominal by clicking on box next to variable names in Columns box of data editor window Select Analyze  Fit Y by X Click on Response Variable(s), then Y,Response Click on (nominal or ordinal) Factor variable(s), then X,Factor Click OK (This gives a scatterplot) Click on Red Arrow in Oneway Analysis box, and select Quantiles (This gives side-by-side boxplots) Copy and Paste into word processor