M'''~ ft\'''' PRot MEAAJS PROC. Pilot. P2.oc- ME AtJS. Ci+.\.,t.t\ {oy «(0""''" "OUS ) F~EQ. \keel. fo (OM p"te cbsty'.ptl\'t.

Similar documents
INTRODUCTION SAS Prepared by A. B. Billings West Virginia University May 1999 (updated August 2006)

Lab #9: ANOVA and TUKEY tests

Introductory Guide to SAS:

Introduction to Statistical Analyses in SAS

EXST SAS Lab Lab #6: More DATA STEP tasks

SAS Example A10. Output Delivery System (ODS) Sample Data Set sales.txt. Examples of currently available ODS destinations: Mervyn Marasinghe

EDUCATION IN PROC TABULATE I EDUCATION IN PROC TABULATE II

THE UNIVERSITY OF BRITISH COLUMBIA FORESTRY 430 and 533. Time: 50 minutes 40 Marks FRST Marks FRST 533 (extra questions)

Writing Reports with the

Quantitative - One Population

STAT:5400 Computing in Statistics

Using SAS to Analyze CYP-C Data: Introduction to Procedures. Overview

THIS IS NOT REPRESNTATIVE OF CURRENT CLASS MATERIAL. STOR 455 Midterm 1 September 28, 2010

IQR = number. summary: largest. = 2. Upper half: Q3 =

Laboratory Topics 1 & 2

PLS205 Lab 1 January 9, Laboratory Topics 1 & 2

Analysis of Complex Survey Data with SAS

Laboratory for Two-Way ANOVA: Interactions

ANSWERS -- Prep for Psyc350 Laboratory Final Statistics Part Prep a

Factorial ANOVA with SAS

Applied Regression Modeling: A Business Approach

Epidemiology Principles of Biostatistics Chapter 3. Introduction to SAS. John Koval

CSC 328/428 Summer Session I 2002 Data Analysis for the Experimenter FINAL EXAM

Data Analysis and Solver Plugins for KSpread USER S MANUAL. Tomasz Maliszewski

Research Methods for Business and Management. Session 8a- Analyzing Quantitative Data- using SPSS 16 Andre Samuel

STAT 503 Fall Introduction to SAS

Basic Concepts #6: Introduction to Report Writing

E-Campus Inferential Statistics - Part 2

Basic Commands. Consider the data set: {15, 22, 32, 31, 52, 41, 11}

Table Of Contents. Table Of Contents

STA 570 Spring Lecture 5 Tuesday, Feb 1

1. Basic Steps for Data Analysis Data Editor. 2.4.To create a new SPSS file

1 Downloading files and accessing SAS. 2 Sorting, scatterplots, correlation and regression

Centering and Interactions: The Training Data

Brief Guide on Using SPSS 10.0

MINITAB BASICS STORING DATA

Introducing a Colorful Proc Tabulate Ben Cochran, The Bedford Group, Raleigh, NC

Econ 3790: Business and Economics Statistics. Instructor: Yogesh Uppal

Today s Lecture. Factors & Sampling. Quick Review of Last Week s Computational Concepts. Numbers we Understand. 1. A little bit about Factors

5b. Descriptive Statistics - Part II

SAS Programs SAS Lecture 4 Procedures. Aidan McDermott, April 18, Outline. Internal SAS formats. SAS Formats

It s Proc Tabulate Jim, but not as we know it!

Assignment 5.5. Nothing here to hand in

Intermediate SAS: Statistics

Robust Linear Regression (Passing- Bablok Median-Slope)

Using PC SAS/ASSIST* for Statistical Analyses

Hypermarket Retail Analysis Customer Buying Behavior. Reachout Analytics Client Sample Report

SPSS. (Statistical Packages for the Social Sciences)

Exam Questions A00-281

Week 6, Week 7 and Week 8 Analyses of Variance

Multivariate Capability Analysis

MINITAB 17 BASICS REFERENCE GUIDE

STAT 2607 REVIEW PROBLEMS Word problems must be answered in words of the problem.

Example1D.1.sas. * Procedures : ; * 1. print to show the dataset. ;

Stat 302 Statistical Software and Its Applications SAS: Data I/O

Notes on Simulations in SAS Studio

Product Catalog. AcaStat. Software

ST512. Fall Quarter, Exam 1. Directions: Answer questions as directed. Please show work. For true/false questions, circle either true or false.

The Power and Sample Size Application

Averages and Variation

EXST SAS Lab Lab #8: More data step and t-tests

Excel 2010 with XLSTAT

Week 4: Describing data and estimation

A. Incorrect! This would be the negative of the range. B. Correct! The range is the maximum data value minus the minimum data value.

Data analysis using Microsoft Excel

Final Stat 302, March 17, 2014

STATS PAD USER MANUAL

Fathom Dynamic Data TM Version 2 Specifications

STAT:5201 Applied Statistic II

Regression Lab 1. The data set cholesterol.txt available on your thumb drive contains the following variables:

Unit 1 Review of BIOSTATS 540 Practice Problems SOLUTIONS - Stata Users

A Step by Step Guide to Learning SAS

Processing SAS Data Sets

EXST3201 Mousefeed01 Page 1

Statistical Pattern Recognition

MHPE 494: Data Analysis. Welcome! The Analytic Process

Mixed Effects Models. Biljana Jonoska Stojkova Applied Statistics and Data Science Group (ASDa) Department of Statistics, UBC.

Measures of Dispersion

Statements with the Same Function in Multiple Procedures

BACKGROUND INFORMATION ON COMPLEX SAMPLE SURVEYS

Analysis of variance and regression. November 13, 2007

Analysis of variance and regression. November 13, 2007

Getting Up to Speed with PROC REPORT Kimberly LeBouton, K.J.L. Computing, Rossmoor, CA

SAS Training Spring 2006

I Launching and Exiting Stata. Stata will ask you if you would like to check for updates. Update now or later, your choice.

Repeated Measures Part 4: Blood Flow data

Stat 302 Statistical Software and Its Applications SAS: Data I/O & Descriptive Statistics

STATA 13 INTRODUCTION

Poisson Regressions for Complex Surveys

SAS is the most widely installed analytical tool on mainframes. I don t know the situation for midrange and PCs. My Focus for SAS Tools Here

Lab #1: Introduction to Basic SAS Operations

Acquisition Description Exploration Examination Understanding what data is collected. Characterizing properties of data.

Week 4: Simple Linear Regression III

CHAPTER 2 DESCRIPTIVE STATISTICS

Database system. Régis Mollard

Paper S Data Presentation 101: An Analyst s Perspective

IAT 355 Visual Analytics. Data and Statistical Models. Lyn Bartram

2.5 Continuity. f(x) + g(x) > (M c) + (c - 1) == M. Thus,

Compare Linear Regression Lines for the HP-41C

Psychology 282 Lecture #21 Outline Categorical IVs in MLR: Effects Coding and Contrast Coding

Transcription:

It),I PRot MEAAJS PROC. Pilot F~EQ \JNI\I~~'An P2.oc- ME AtJS \keel. fo (OM p"te cbsty'.ptl\'t Ci+.\.,t.t\ {oy «(0""''" "OUS ),,\lm,ylt data. ~\.\,\\,(~.I\l,,,.At ~ N. " """9 M'''~ ". ~ \'lo-cla,d tit, tift\ ft\'''' ~l~

ki\.t" '-t.n 1»«pw,JM(,d, by tit,.,f n~,tgt"t,(s O~, r.,uest,cl IV' P20C P~/AJr c;.+.t.

PROC MEANS can be used to compute various univariate descriptive statistics for specified variables including the number of observations, mean, standard deviation, variance, minimum and maximum values, the standard error of the mean, uncorrected sum of squares, corrected sum of squares, the coefficient of variation, and confidence limits for the mean. You can also ask PROC MEANS to perform a t-test on the hypothesis that the population mean IS zero. will automatically compute and print the mean, standard deviation, minimum and maximum values for each of the numeric variables in the most recently created data set. If the linesize of the output window is large enough, PROC MEANS will also print the standard error of the mean, the variance, the sum, and the coefficient of determination. You can specify the data set which PROC MEANS will process by using the DATA= option in the PROC MEANS statement: The VAR statement may be used in conjunction with the PROC MEANS statement to specify the variables for which you want descriptive statistics computed. DATA example1; INPUT name $ 1-10 sex $ 12 age 14-15 height 17-18 weight 20-22 SAS programming statements go here CARDS; Data records go here

PROC MEANS DATA= examplel; VAR age height; RUN', Descriptive statistics will be printed only for the variables specified in the VAR statement. A BY statement can be used with PROC MEANS to obtain separate analyses on observations in groups defined by the variable(s) in the BY statement. When a BY statement appears as part of the MEANS procedure, the procedure expects the data to be sorted in the order of the BY variables. DATA example 1; INPUT name $ 1-10 sex $ 12 age 14-15 height 17-18 weight 20-22 SAS programming statements go here CARDS; Data records go here RUN; PROC SORT DATA = example 1; BY sex; RUN; PROC MEANS DATA= examplel; VAR height weight age; BY sex; RUN', This example will produce a listing of descriptive statistics for females (sex='f') and a separate listing for males (sex='m'). You can ask PROC MEANS to produce only the descriptive statistics you desire. Corresponding to each statistic is a keyword that can be specified in the PROC MEANS statement: number of observations with missing values (in a subgroup)

MEAN STD MIN MAX RANGE SUM VAR USS CSS CV STDERR sample mean sample standard deviation minimum value maximum value range sum vanance uncorrected sum of squares corrected sum of squares coefficient of variation standard error of the mean probability of a greater absolute value for Student's t statistic The confidence intervals have a 95% confidence level (by default). If you desire a different confidence level, use the ALPHA= option on the PROC MEANS statement. For example, to produce 99% confidence limits,

Now for a more complicated example, including a t-test, we might use the following program: DATA example 1; INPUT name $ 1-10 sex $ 12 age 14-15 height 17-18 weight 20-22 SAS programming statements go here CARDS; Data records go here RUN; PROC SORT DATA = example1; BY sex; RUN; PROC MEANS DATA= example1 RUN; N MEAN STD STDERR CLM T PRT ALPHA=0.10; VAR height weight age ;/;51-110 ~ a= () BY sex; With some clever program statements, you can "trick" PROC MEANS into performing tests involving hypotheses other than H o :!!= O. Suppose that you wish to test H o :!! = 60 for the variable height. This can be accomplished by DATA example1; INPUT name $ 1-10 sex $ 12 age 14-15 height 17-18 weight 20-22 /* set up variable for hypothesis test H o :!!= 60 */ htdiff = height - 60; CARDS; t~juo: 11: (P 0 Data records go here PROC MEANS DATA= example1 VAR htdiff; RUN; N MEAN STD STDERR T PRT;

CLAS~ ~tm+ co be ustcl w.t~ PROc. MEANS +. pro.'t G "'''~$t+ttd'' M AA).~.Y\a~SIS, '110 SOR.T'''~. ". 4ato fltst. )C : Plot. M fw ~ OAfB: exa.,it J ; CLASS CiEX j VAl l\l"; h"sht wl.,h t a,t; Gtl\tAl C.lf\SS rof~: ~OYlo"'t(\);

PROC MEANS can also produce an output data set containing the computed descriptive statistics by using an OUTPUT statement, which has the form DATA examplel; INPUT name $ 1-10 sex $ 12 age 14-15 height 17-18 weight 20-22 SAS program statements go here CARDS; Data records go here PROC MEANS DA TA= example 1 N MEAN STD STDERR; VAR weight; OUTPUT OUT= calcstat N MEAN STD STDERR; RUN; The data set calcstat will contain the specified statistics for the variable weight.

O\)T PUT stotfw\,.t to" (ftat,.w. o'"p"... SA~data n,t -H.t c",tt""j clt$(( i'pt.vt sfq+ 1St.( J btftt~' ~im OUTPUT OUT: r~lt,t 5t. hs+,(: vorlo~(fhoma..

/0.? et\ PRot ME lans DItTIIs o~m'l' 1 ; C.L"SS s,~; "AI. ~t,~ht CA),-"ht OUTPuT out- clt\t. ~EA" ~ ft\8ft ht MQ Qtt" Int~" cast. STO:. ~t.~t ~+~Nt st.-,. N : nht nuat ft.'" SUM: s"."t S\l1W\ wt luw\g,e. ; oj&.;

10. f> ~JI" (ft,tt. I " fech v.i'k 0.\ SEX \tp.f'.t.,~, "'.OWlS J tl-al\fltwta. dt v,.+um\, fl''''''' '* n.ft'."$s'''~v&iw'l o~ai ~"IW\S " & "'''t~e"or/.ltl" hi.\ht, ~(t \"-1-4'ut Qat.

Ca" PRINT +&.t output dato\et. eo. ",. +h& out,.t c1afosl t '" of-i.,y",totttlutes.

Fot ft\~1ttc1<lui1\mq1'i ~POt't\ 'w\ PilOt MEAA»S

PRot UAJ,\lA21ATE PROt Ua"VA~I"T" ~AT" ~ caotq\t.+ ftow\c o,tlott\ j ()~'",,\,,,ducl,c., ~ NO Pft, ~T svppms Pfl~'hc/ OUtput

fa" U\t \JAe ~.+ 8'1,+_t CLASS If) OUTPuT s+-t $~ft\f \+_+ ",+h PlOt UWIVAR'AT,