Generating Random Samples SAS, EXCEL, JMP, SPSS. Population of Data  Sample Data should be in a dataset where each row represents an individual unit,

Slides:



Advertisements
Similar presentations
(MICROSOFT EXCEL). Is a spreadsheet application designed to take advantage of the windows graphical interface MICROSOFT EXCEL.
Advertisements

Summary Statistics/Simple Graphs in SAS/EXCEL/JMP.
T-Test Label and list one set of scores in one column List the second set in the second column.
Data Analysis using SPSS By Dr. Shaik Shaffi Ahamed Ph. D
1 Using Excel for Statistics Office 2010 and 2013.
Simulation Operations -- Prof. Juran.
17a.Accessing Data: Manipulating Variables in SPSS ®
Introduction to SPSS Allen Risley Academic Technology Services, CSUSM
Saving and Preparing School Finance Data from GEMS Expenditures Paul Taylor, OPI School Finance.
Ann Arbor ASA ‘Up and Running’ Series: SPSS Prepared by volunteers of the Ann Arbor Chapter of the American Statistical Association, in cooperation with.
1 An Introduction to IBM SPSS PSY450 Experimental Psychology Dr. Dwight Hennessy.
1 SPSS Recently it has gone through a name change so your icon on your computer may be under a different name (i.e. PASW- Predictive Analytics SoftWare).
Using Excel for Data Analysis in CHM 161 Monique Wilhelm.
A Simple Guide to Using SPSS© for Windows
Introduction to SPSS Descriptive Statistics. Introduction to SPSS Statistics Program for the Social Sciences (SPSS) Commonly used statistical software.
Simulation Basic Concepts. NEED FOR SIMULATION Mathematical models we have studied thus far have “closed form” solutions –Obtained from formulas -- forecasting,
Sampling and Sampling Distributions Simple Random Sampling Point Estimation Sampling Distribution.
Simulation Basic Concepts. NEED FOR SIMULATION Mathematical models we have studied thus far have “closed form” solutions –Obtained from formulas -- forecasting,
EViews. Agenda Introduction EViews files and data Examining the data Estimating equations.
Microsoft Excel 2007 Introduction to Spreadsheet Programs
SPSS 1: An Introduction to the Statistical Package SPSS Suzie Cro MRC Clinical Trials Unit.
SPSS Statistical Package for the Social Sciences is a statistical analysis and data management software package. SPSS can take data from almost any type.
1 1 Slide © 2001 South-Western/Thomson Learning  Anderson  Sweeney  Williams Anderson  Sweeney  Williams  Slides Prepared by JOHN LOUCKS  CONTEMPORARYBUSINESSSTATISTICS.
Introduction to SPSS (For SPSS Version 16.0)
DATA Exploration: Statistics (One Variable) 1.Basic EXCELL/MATLAB functions for data exploration 2.Measures of central tendency, Distributions 1.Mean 2.Median.
Sampling Distribution of the Mean Problem - 1
1 After completing this lesson, you will be able to: Format numeric data. Adjust the size of rows and columns. Align cell content. Create and apply conditional.
AGB 260: Agribusiness Information Technology Sort, Filters, Pivot Tables, and Pivot Charts.
Data Analysis Using SPSS
1 1 Slide © 2016 Cengage Learning. All Rights Reserved. A population is the set of all the elements of interest. A population is the set of all the elements.
Introduction to SPSS Edward A. Greenberg, PhD
LINDSEY BREWER CSSCR (CENTER FOR SOCIAL SCIENCE COMPUTATION AND RESEARCH) UNIVERSITY OF WASHINGTON September 17, 2009 Introduction to SPSS (Version 16)
PECS Reporting 101 and Drill Down Benjamin Fouts MPH OneWorld Community Health Center Omaha, NE Phase 2 Health Disparities Retreat April 12, 2007 Council.
MAIL MERGING IN MICROSOFT PUBLISHER CREATING LABELS AND DOCUMENTS FOR MULTIPLE PEOPLE AT ONCE.
CONSTRUCTING RELATIVE & CUMULATIVE FREQUENCY DISTRIBUTIONS using EXCEL & WORD.
Social Science Research Design and Statistics, 2/e Alfred P. Rovai, Jason D. Baker, and Michael K. Ponton Entering Data Manually PowerPoint Prepared by.
Microsoft Excel Quick Overview Putting students first to make learning last a lifetime Celebrating academics, diversity, and innovation.
Plotting in Microsoft Excel. 1) Enter your data into the Excel spreadsheet in table format. Your data should have column headers, row headers and data.
What is SPSS  SPSS is a program software used for statistical analysis.  Statistical Package for Social Sciences.
Developed By Information Technology Services University Of Saskatchewan.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
A Simple Guide to Using SPSS ( Statistical Package for the Social Sciences) for Windows.
Excel Screen Slide 1 Column Row Cell Formula bar Column heading Row heading Worksheet tab.
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.
Analysis Introduction Data files, SPSS, and Survey Statistics.
Sensitivity Analysis A systematic way of asking “what-if” scenario questions in order to understand what outcomes could possibly occur that would effect.
DTC Quantitative Methods Summary of some SPSS commands Weeks 1 & 2, January 2012.
Microsoft Office 2013 ®® Calculating Data with Formulas and Functions.
Using SPSS Next. An Introduction SPSS (the Statistical Package for the Social Sciences)
Use SPSS for solving the problems Lecture#21. Opening SPSS The default window will have the data editor There are two sheets in the window: 1. Data view2.
Microsoft ® Excel ® 2013 Enhanced Excel Tutorial 3 Calculating Data with Formulas and Functions.
1 CA202 Spreadsheet Application Focusing on Specific Data using Filters Lecture # 5.
1 Using Excel for Statistics in Gateway Cases. 2 Concepts Covered Statistics - Descriptive Statistics - Scatter Plots - Histograms - Regression Analysis.
Elementary Analysis Richard LeGates URBS 492. Univariate Analysis Distributions –SPSS Command Statistics | Summarize | Frequencies Presents label, total.
How to Create a form using the Program Excel By Mrs Douglas 8/1/10.
SOC 305, Southeastern Louisiana University Prof. Robert Martin.
How to graph your stock project performance vs. the 3 major indexes.
Computer/LMS Access To log onto one of these computers: Enter your Username, for example: 2014BNS099 followed So a complete login.
Social Science Research Design and Statistics, 2/e Alfred P. Rovai, Jason D. Baker, and Michael K. Ponton Selecting and Assigning Cases Randomly PowerPoint.
COMPARISON OF MEANS QUESTION #10c
Making a JSON file.
Using SPSS Note: The use of another statistical package such as Minitab is similar to using SPSS.
Data Management and Analysis Using Excel
After completing this lesson, you will be able to:
AGB 260: Agribusiness Data Literacy
Chapter 1 Minitab Recipe Card
Spss.
Chapter 3 Minitab Recipe Cards
The Basics of Excel Part I Monday, April 3rd 2017
Move the cursor to cell A1 of the ‘Input’ worksheet.
Presentation transcript:

Generating Random Samples SAS, EXCEL, JMP, SPSS

Population of Data  Sample Data should be in a dataset where each row represents an individual unit, and column fields represent variables measured on the individual A new column field will be created that contains a pseudo-random number generated by statistal software package (usually Uniform(0,1) r.v.) Data are sorted by the random number, or simply selected for analysis (depending on software)

All ATL/HNL 10/2004 Delta Flights (N=31)

SAS Code to Generate Random Sample (n=10) Data Pop; Input Day FlightNum TailNum $ DestCity $ TaxiTime Sched Actual Distance; Ranx=Ranuni(seed); /* Put in a number where “seed” is */ Cards; 1317N834MHHNL … 31317N840MHHNL ; Proc Sort; By Ranx; Data Sample; Set Pop; If _N_ <= 10; Run; /* You can run any procedures now on the Sample */

Generating Random Samples in EXCEL In a new column past the data, type in the first row containing data on a unit: =RAND() COPY and PASTE that cell until all N units have a random number While that range of N cells is still highlighted, click on COPY  EDIT  PASTE SPECIAL  Click on VALUES (This changes them from Dynamic to Static) Place Cursor in Data Field, Click on: DATA  SORT  Choose Column with Random Values and Choose appropriate Header Row Status After data are sorted, COPY and PASTE (SPECIAL VALUES) the first n units to a new worksheet

Random Numbers (Not Sorted Yet)

Data Sorted By Random Number

EXCEL Random Sample (n=10)

Random Samples in JMP Import Data into JMP Click on TABLES  SUBSET  RANDOM SAMPLE  Enter Your Sample Size (e.g. 10) in Box Subset Dataset Appears in New Table Analyze the Data in that Table

Random Samples in SPSS Import Data into SPSS Older Versions: Click Transform  Random # Seed  Enter a numeric seed Newer Versions: Click Transform  Random # Generators  Active Generator Initialization  Fixed Value  Enter a numeric seed –Click Data  Select Cases –Under Select, choose Random Sample of Cases. Click on Sample box. –Choose Exactly n (10) of the first N (31), click Continue –Click OK. Slashes will appear in the case numbers of the cases not in the sample, and an indicator variable representing Filter will be attached to end of dataset. –Analyze the Data