I L L I N O I S UNIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN

Size: px
Start display at page:

Download "I L L I N O I S UNIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN"

Transcription

1 SAS for HLM Edps/Psych/Stat/ 587 Carolyn J. Anderson Department of Educational Psychology I L L I N O I S UNIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN SAS for HLM Slide 1 of 16

2 Outline SAS & (for Random Intercept Models)... The following will be discussed and demonstrated in class. Outline: Data steps. How to simulate data. SAS for HLM Slide 2 of 16

3 Creating a SAS data set Always Check Log File!! Level 2 Data Log File Merging Two Files Centering Variables Creating a SAS data set. Merging files of different lengths (level 1 & level 2). Creating centered variables. Other SAS for HLM Slide 3 of 16

4 Creating a SAS data set Creating a SAS data set Always Check Log File!! Level 2 Data Log File Merging Two Files Centering Variables * HSB dat1 : level 1 responses; LIBNAME sasdata C:\My Documents\teaching\hlm\lectures\randomintercept ; DATA sasdata.hsb1; INPUT id minority female ses mathach; LABEL id= school minority= Student ethnicity (1=minority, 0=not) female = student gender (1=female, 0=male) ses= standardized scale of student ses mathach= Mathematics achievement ; DATALINES;; Alternatively: LIBNAME mydata C:\My Documents \ teaching\hlm\ lectures \ randomintercept\rawdata.txt ; DATA sasdata.hsb1; infile mydata; INPUT id minority female ses mathach; SAS for HLM Slide 4 of 16

5 Always Check Log File!! Creating a SAS data set Always Check Log File!! Level 2 Data Log File Merging Two Files Centering Variables NOTE: The data set SASDATA.HSB1 has 7185 observations and 5 variables. NOTE: DATA statement used: real time 0.09 seconds cpu time 0.09 seconds SAS for HLM Slide 5 of 16

6 Level 2 Data * hsb2.dat level 2 (schools); Creating a SAS data set Always Check Log File!! Level 2 Data Log File Merging Two Files Centering Variables Need LIBNAME? DATA sasdata.hsb2; INPUT id size sector pracad disclim himinty meanses; LABEL id= school id size= school enrollment sector= 1=Catholic, 0=public pracad= proportion students in academic track disclim= Disciplinary climate himinty= 1=40% minority, 0= <40% minority meanses= Mean SES ; DATALINES; SAS for HLM Slide 6 of 16

7 Log File Creating a SAS data set Always Check Log File!! Level 2 Data Log File Merging Two Files Centering Variables NOTE: The data set SASDATA.HSB2 has 160 observations and 7 variables. NOTE: DATA statement used: real time 0.03 seconds cpu time 0.03 seconds SAS for HLM Slide 7 of 16

8 Merging Two Files Step 1: Sort the data according to variable used to match observations: Creating a SAS data set Always Check Log File!! Level 2 Data Log File Merging Two Files Centering Variables * Combine hsb1 and hsb2 into a single file; * Make sure data files are correctly sorted; PROC SORT DATA=hsb1; by id; PROC SORT DATA=hsb2; by id; Step 2: Merge the two files using the by command Merge the level 1 and level 2 files: DATA hsball; MERGE hsb1 hsb2; BY id; run; Step 3: Check log and Data! (explorer window) SAS for HLM Slide 8 of 16

9 Centering Variables First find the means: Creating a SAS data set Always Check Log File!! Level 2 Data Log File Merging Two Files Centering Variables PROC MEANS data=hsball; by id; var ses; output out=meanses mean=meanses; Merge file with means and main data file and create new variables data hsbcent; merge hsball meanses by id; cses = SES - meanses; RUN; SAS for HLM Slide 9 of 16

10 Basic Syntax: Options CLASS and Model Statements Example of Null HLM 1. options 2. CLASS statement 3. MODEL statement 4. RANDOM statement. 5. TITLE statement. SAS for HLM Slide 10 of 16

11 Options <options go here> ; <various comands on the following lines> Options CLASS and Model Statements Example of Null HLM Options: DATA=<name of sas data set>: what SAS data set to use. NOCLPRINT: don t print classification levels/information. COVTEST: hypothesis tests for variances (& covariances). METHOD: estimation method to use. ML = maximum likelihood REML = restricted maximum likelihood (REML is the default) o SAS for HLM Slide 11 of 16

12 CLASS and Model Statements Options CLASS and Model Statements Example of Null HLM CLASS statement indicates variables that are discrete (nominal), i.e., classification variables. MODEL statement: Name of the response or outcome variable is given to the left of the = sign. Fixed effects are listed on the right side of = sign. MODEL option SOLUTION indicates that you want parameter estimates for the fixed effect output. SAS for HLM Slide 12 of 16

13 Example of Null HLM o Options CLASS and Model Statements Example of Null HLM DATA=sasdata.hsball NOCLPRINT COVTEST METHOD=ML; TITLE HSB: null/empty random intercept model ; CLASS id ; MODEL mathach = / SOLUTION ; RANDOM intercept / SUBJECT = id ; run; SAS for HLM Slide 13 of 16

14 Outline: SAS/ASSIST interactive creating and editing graphs. Saving log file to use commends in SAS program and futher refinements. Exporting graphs to files. SAS for HLM Slide 14 of 16

15 Can be very useful for detecting problems between data and model and assessing whether you have correct code for model. Place code here or walk through SAS program that s on the web SAS for HLM Slide 15 of 16

16 SAS in general: Local (some written by former student): Statistics department has training classes (these cost money) Company: > Support training > Technical support Insight, graphics and MIXED: Course web-site SAS for HLM Slide 16 of 16

Performing Cluster Bootstrapped Regressions in R

Performing Cluster Bootstrapped Regressions in R Performing Cluster Bootstrapped Regressions in R Francis L. Huang / October 6, 2016 Supplementary material for: Using Cluster Bootstrapping to Analyze Nested Data with a Few Clusters in Educational and

More information

Introduction to SAS: General

Introduction to SAS: General Spring 2019 CJ Anderson Introduction to SAS: General Go to course web-site and click on hsb-datasas There are 5 main working environments (windows) in SAS: Explorer window: Lets you view data in SAS data

More information

Introduction to Hierarchical Linear Model. Hsueh-Sheng Wu CFDR Workshop Series January 30, 2017

Introduction to Hierarchical Linear Model. Hsueh-Sheng Wu CFDR Workshop Series January 30, 2017 Introduction to Hierarchical Linear Model Hsueh-Sheng Wu CFDR Workshop Series January 30, 2017 1 Outline What is Hierarchical Linear Model? Why do nested data create analytic problems? Graphic presentation

More information

Introduction to Mixed Models: Multivariate Regression

Introduction to Mixed Models: Multivariate Regression Introduction to Mixed Models: Multivariate Regression EPSY 905: Multivariate Analysis Spring 2016 Lecture #9 March 30, 2016 EPSY 905: Multivariate Regression via Path Analysis Today s Lecture Multivariate

More information

The linear mixed model: modeling hierarchical and longitudinal data

The linear mixed model: modeling hierarchical and longitudinal data The linear mixed model: modeling hierarchical and longitudinal data Analysis of Experimental Data AED The linear mixed model: modeling hierarchical and longitudinal data 1 of 44 Contents 1 Modeling Hierarchical

More information

ERROR: ERROR: ERROR:

ERROR: ERROR: ERROR: ERROR: ERROR: ERROR: Formatting Variables: Back and forth between character and numeric Why should you care? DATA name1; SET name; if var = Three then delete; if var = 3 the en delete; if var = 3 then

More information

Model Selection Using Information Criteria (Made Easy in SAS )

Model Selection Using Information Criteria (Made Easy in SAS ) ABSTRACT Paper 2587-2018 Model Selection Using Information Criteria (Made Easy in SAS ) Wendy Christensen, University of California, Los Angeles Today s statistical modeler has an unprecedented number

More information

Introduction to SAS. Cristina Murray-Krezan Research Assistant Professor of Internal Medicine Biostatistician, CTSC

Introduction to SAS. Cristina Murray-Krezan Research Assistant Professor of Internal Medicine Biostatistician, CTSC Introduction to SAS Cristina Murray-Krezan Research Assistant Professor of Internal Medicine Biostatistician, CTSC cmurray-krezan@salud.unm.edu 20 August 2018 What is SAS? Statistical Analysis System,

More information

Example Using Missing Data 1

Example Using Missing Data 1 Ronald H. Heck and Lynn N. Tabata 1 Example Using Missing Data 1 Creating the Missing Data Variable (Miss) Here is a data set (achieve subset MANOVAmiss.sav) with the actual missing data on the outcomes.

More information

Pseudo-Likelihood Estimation of Log-Linear by Linear Association Models to Really Large Tables Using SAS

Pseudo-Likelihood Estimation of Log-Linear by Linear Association Models to Really Large Tables Using SAS Pseudo-Likelihood Estimation of Log-Linear by Linear Association Models to Really Large Tables Using SAS Carolyn J. Anderson University of Illinois at Urbana-Champaign March 22, 2007 Abstract This document

More information

Hierarchical Generalized Linear Models

Hierarchical Generalized Linear Models Generalized Multilevel Linear Models Introduction to Multilevel Models Workshop University of Georgia: Institute for Interdisciplinary Research in Education and Human Development 07 Generalized Multilevel

More information

Motivating Example. Missing Data Theory. An Introduction to Multiple Imputation and its Application. Background

Motivating Example. Missing Data Theory. An Introduction to Multiple Imputation and its Application. Background An Introduction to Multiple Imputation and its Application Craig K. Enders University of California - Los Angeles Department of Psychology cenders@psych.ucla.edu Background Work supported by Institute

More information

Generalized least squares (GLS) estimates of the level-2 coefficients,

Generalized least squares (GLS) estimates of the level-2 coefficients, Contents 1 Conceptual and Statistical Background for Two-Level Models...7 1.1 The general two-level model... 7 1.1.1 Level-1 model... 8 1.1.2 Level-2 model... 8 1.2 Parameter estimation... 9 1.3 Empirical

More information

INTRODUCTION TO DATA. Welcome to the course!

INTRODUCTION TO DATA. Welcome to the course! INTRODUCTION TO DATA Welcome to the course! High School and Beyond id gender race socst 70 male white 57 121 female white 61 86 male white 31 137 female white 61 Loading data > # Load package > library(openintro)

More information

Hands-on target setting - Workshop

Hands-on target setting - Workshop Hands-on target setting - Workshop S Earl Irving Mark Gan September 2012 Overview Clearing the clutter Setting up the three worksheets Merging NCEA data & tidying the file Calculating 75 th percentile

More information

Repeated Measures Part 4: Blood Flow data

Repeated Measures Part 4: Blood Flow data Repeated Measures Part 4: Blood Flow data /* bloodflow.sas */ options linesize=79 pagesize=100 noovp formdlim='_'; title 'Two within-subjecs factors: Blood flow data (NWK p. 1181)'; proc format; value

More information

SAS2000. School Start Bonus Enrolment Export. User Guide

SAS2000. School Start Bonus Enrolment Export. User Guide SAS2000 School Start Bonus Enrolment Export User Guide Human Edge Software Corporation Pty Ltd 417 City Road South Melbourne Vic 3205 Support Centre: 1300 301 931 Human Edge Software Corporation Pty Ltd,

More information

Multiple Imputation for Missing Data. Benjamin Cooper, MPH Public Health Data & Training Center Institute for Public Health

Multiple Imputation for Missing Data. Benjamin Cooper, MPH Public Health Data & Training Center Institute for Public Health Multiple Imputation for Missing Data Benjamin Cooper, MPH Public Health Data & Training Center Institute for Public Health Outline Missing data mechanisms What is Multiple Imputation? Software Options

More information

Introduction to Mixed-Effects Models for Hierarchical and Longitudinal Data

Introduction to Mixed-Effects Models for Hierarchical and Longitudinal Data John Fox Lecture Notes Introduction to Mixed-Effects Models for Hierarchical and Longitudinal Data Copyright 2014 by John Fox Introduction to Mixed-Effects Models for Hierarchical and Longitudinal Data

More information

STAT 7000: Experimental Statistics I

STAT 7000: Experimental Statistics I STAT 7000: Experimental Statistics I 2. A Short SAS Tutorial Peng Zeng Department of Mathematics and Statistics Auburn University Fall 2009 Peng Zeng (Auburn University) STAT 7000 Lecture Notes Fall 2009

More information

DETAILED CONTENTS. About the Editor About the Contributors PART I. GUIDE 1

DETAILED CONTENTS. About the Editor About the Contributors PART I. GUIDE 1 DETAILED CONTENTS Preface About the Editor About the Contributors xiii xv xvii PART I. GUIDE 1 1. Fundamentals of Hierarchical Linear and Multilevel Modeling 3 Introduction 3 Why Use Linear Mixed/Hierarchical

More information

MIXED_RELIABILITY: A SAS Macro for Estimating Lambda and Assessing the Trustworthiness of Random Effects in Multilevel Models

MIXED_RELIABILITY: A SAS Macro for Estimating Lambda and Assessing the Trustworthiness of Random Effects in Multilevel Models SESUG 2015 Paper SD189 MIXED_RELIABILITY: A SAS Macro for Estimating Lambda and Assessing the Trustworthiness of Random Effects in Multilevel Models Jason A. Schoeneberger ICF International Bethany A.

More information

Modeling Categorical Outcomes via SAS GLIMMIX and STATA MEOLOGIT/MLOGIT (data, syntax, and output available for SAS and STATA electronically)

Modeling Categorical Outcomes via SAS GLIMMIX and STATA MEOLOGIT/MLOGIT (data, syntax, and output available for SAS and STATA electronically) SPLH 861 Example 10b page 1 Modeling Categorical Outcomes via SAS GLIMMIX and STATA MEOLOGIT/MLOGIT (data, syntax, and output available for SAS and STATA electronically) The (likely fake) data for this

More information

DESIGN AND PRODUCE BUSINESS DOCUMENTS / USE BUSINESS TECHNOLOGY

DESIGN AND PRODUCE BUSINESS DOCUMENTS / USE BUSINESS TECHNOLOGY FINANCIAL SERVICES ASSESSMENT BOOKLET 2013 Semester 1 DESIGN AND PRODUCE BUSINESS DOCUMENTS / USE BUSINESS TECHNOLOGY BSBITU306A (FTPF) / (FTPX) Page 1 of 10 July 2012 CRITERIA FOR RESULTS: Supervised

More information

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

Epidemiology Principles of Biostatistics Chapter 3. Introduction to SAS. John Koval Epidemiology 9509 Principles of Biostatistics Chapter 3 John Koval Department of Epidemiology and Biostatistics University of Western Ontario What we will do today We will learn to use use SAS to 1. read

More information

Statistical Methods for the Analysis of Repeated Measurements

Statistical Methods for the Analysis of Repeated Measurements Charles S. Davis Statistical Methods for the Analysis of Repeated Measurements With 20 Illustrations #j Springer Contents Preface List of Tables List of Figures v xv xxiii 1 Introduction 1 1.1 Repeated

More information

THE ANALYSIS OF CONTINUOUS DATA FROM MULTIPLE GROUPS

THE ANALYSIS OF CONTINUOUS DATA FROM MULTIPLE GROUPS THE ANALYSIS OF CONTINUOUS DATA FROM MULTIPLE GROUPS 1. Introduction In practice, many multivariate data sets are observations from several groups. Examples of these groups are genders, languages, political

More information

Stat 500 lab notes c Philip M. Dixon, Week 10: Autocorrelated errors

Stat 500 lab notes c Philip M. Dixon, Week 10: Autocorrelated errors Week 10: Autocorrelated errors This week, I have done one possible analysis and provided lots of output for you to consider. Case study: predicting body fat Body fat is an important health measure, but

More information

Reducing the Effects of Careless Responses on Item Calibration in Item Response Theory

Reducing the Effects of Careless Responses on Item Calibration in Item Response Theory Reducing the Effects of Careless Responses on Item Calibration in Item Response Theory Jeffrey M. Patton, Ying Cheng, & Ke-Hai Yuan University of Notre Dame http://irtnd.wikispaces.com Qi Diao CTB/McGraw-Hill

More information

ST Lab 1 - The basics of SAS

ST Lab 1 - The basics of SAS ST 512 - Lab 1 - The basics of SAS What is SAS? SAS is a programming language based in C. For the most part SAS works in procedures called proc s. For instance, to do a correlation analysis there is proc

More information

Introduction to DATA Step Programming: SAS Basics II. Susan J. Slaughter, Avocet Solutions

Introduction to DATA Step Programming: SAS Basics II. Susan J. Slaughter, Avocet Solutions Introduction to DATA Step Programming: SAS Basics II Susan J. Slaughter, Avocet Solutions SAS Essentials Section for people new to SAS Core presentations 1. How SAS Thinks 2. Introduction to DATA Step

More information

Introduction to DATA Step Programming SAS Basics II. Susan J. Slaughter, Avocet Solutions

Introduction to DATA Step Programming SAS Basics II. Susan J. Slaughter, Avocet Solutions Introduction to DATA Step Programming SAS Basics II Susan J. Slaughter, Avocet Solutions SAS Essentials Section for people new to SAS Core presentations 1. How SAS Thinks 2. Introduction to DATA Step Programming

More information

22S:172. Duplicates. may need to check for either duplicate ID codes or duplicate observations duplicate observations should just be eliminated

22S:172. Duplicates. may need to check for either duplicate ID codes or duplicate observations duplicate observations should just be eliminated 22S:172 1 2 Duplicates Data Cleaning involving duplicate IDs and duplicate records may need to check for either duplicate ID codes or duplicate observations duplicate observations should just be eliminated

More information

Chapter 2 Entering Data. Chapter Table of Contents

Chapter 2 Entering Data. Chapter Table of Contents Chapter 2 Entering Data Chapter Table of Contents INVOKING SAS/INSIGHT SOFTWARE... 28 ENTERING VALUES... 31 NAVIGATING THE DATA WINDOW... 33 ADDING VARIABLES AND OBSERVATIONS... 34 DEFINING VARIABLES...

More information

Stat 5100 Handout #14.a SAS: Logistic Regression

Stat 5100 Handout #14.a SAS: Logistic Regression Stat 5100 Handout #14.a SAS: Logistic Regression Example: (Text Table 14.3) Individuals were randomly sampled within two sectors of a city, and checked for presence of disease (here, spread by mosquitoes).

More information

HLM versus SEM Perspectives on Growth Curve Modeling. Hsueh-Sheng Wu CFDR Workshop Series August 3, 2015

HLM versus SEM Perspectives on Growth Curve Modeling. Hsueh-Sheng Wu CFDR Workshop Series August 3, 2015 HLM versus SEM Perspectives on Growth Curve Modeling Hsueh-Sheng Wu CFDR Workshop Series August 3, 2015 1 Outline What is Growth Curve Modeling (GCM) Advantages of GCM Disadvantages of GCM Graphs of trajectories

More information

Requesting user accounts for new staff from One Identity Manager

Requesting user accounts for new staff from One Identity Manager Requesting user accounts for new staff from One Identity Manager Introduction The One Identity Manager Account Request form allows authorised users (DBMs and Administrators) to request Goldsmiths IT User

More information

eschoolplus Alief Independent School Distirct ONLINE STUDENT ENROLLMENT

eschoolplus Alief Independent School Distirct ONLINE STUDENT ENROLLMENT ONLINE STUDENT ENROLLMENT How to Register with Enrollment Online 1. Go to https://aliefhac1.aliefisd.net/eo_parent/user/login.aspx 2. Click on Register New Account. 3. Complete the registration screen

More information

SYLLABUS. Departmental Syllabus. Structured Query Language (SQL)

SYLLABUS. Departmental Syllabus. Structured Query Language (SQL) SYLLABUS DATE OF LAST REVIEW: 02/2013 CIP CODE: 11.0901 SEMESTER: COURSE TITLE: COURSE NUMBER: Structured Query Language (SQL) CIST0151 CREDIT HOURS: 3 INSTRUCTOR: OFFICE LOCATION: OFFICE HOURS: TELEPHONE:

More information

Application Form Full-Time Courses

Application Form Full-Time Courses 2018-2019 Application Form Full-Time Courses APPLICATION FORM FOR EXTERNAL APPLICANTS www.gibraltarcollege.org Surname: Date of Birth: First Name(s): Address: Gender: UCI Number: Male/ Female Recent Photo

More information

Chapter 2: Getting Data Into SAS

Chapter 2: Getting Data Into SAS Chapter 2: Getting Data Into SAS Data stored in many different forms/formats. Four categories of ways to read in data. 1. Entering data directly through keyboard 2. Creating SAS data sets from raw data

More information

Lab #9: ANOVA and TUKEY tests

Lab #9: ANOVA and TUKEY tests Lab #9: ANOVA and TUKEY tests Objectives: 1. Column manipulation in SAS 2. Analysis of variance 3. Tukey test 4. Least Significant Difference test 5. Analysis of variance with PROC GLM 6. Levene test for

More information

Modelling Proportions and Count Data

Modelling Proportions and Count Data Modelling Proportions and Count Data Rick White May 4, 2016 Outline Analysis of Count Data Binary Data Analysis Categorical Data Analysis Generalized Linear Models Questions Types of Data Continuous data:

More information

Final Stat 302, March 17, 2014

Final Stat 302, March 17, 2014 First Name Last Name Student ID Final Stat 302, March 17, 2014 Fritz Scholz Questions 1-15 count as 4 points each, the rest as 6 points each (180 total). 1. Could Y and y refer to different objects within

More information

Coding Categorical Variables in Regression: Indicator or Dummy Variables. Professor George S. Easton

Coding Categorical Variables in Regression: Indicator or Dummy Variables. Professor George S. Easton Coding Categorical Variables in Regression: Indicator or Dummy Variables Professor George S. Easton DataScienceSource.com This video is embedded on the following web page at DataScienceSource.com: DataScienceSource.com/DummyVariables

More information

Statistical Analysis Using Minitab

Statistical Analysis Using Minitab Statistical Analysis Using Minitab Part (1): Introduction to Using Minitab You can download Minitab from www.minitab.com. Detailed help is available here: https://www.minitab.com/uploadedfiles/documents/getting-started/minitab17_gettingstarted-en.pdf

More information

Modelling Proportions and Count Data

Modelling Proportions and Count Data Modelling Proportions and Count Data Rick White May 5, 2015 Outline Analysis of Count Data Binary Data Analysis Categorical Data Analysis Generalized Linear Models Questions Types of Data Continuous data:

More information

Tips & Tricks. With lots of help from other SUG and SUGI presenters. SAS HUG Meeting, November 18, 2010

Tips & Tricks. With lots of help from other SUG and SUGI presenters. SAS HUG Meeting, November 18, 2010 Tips & Tricks With lots of help from other SUG and SUGI presenters 1 SAS HUG Meeting, November 18, 2010 2 3 Sorting Threads Multi-threading available if your computer has more than one processor (CPU)

More information

STAT:5400 Computing in Statistics

STAT:5400 Computing in Statistics STAT:5400 Computing in Statistics Introduction to SAS Lecture 18 Oct 12, 2015 Kate Cowles 374 SH, 335-0727 kate-cowles@uiowaedu SAS SAS is the statistical software package most commonly used in business,

More information

Stat 302 Statistical Software and Its Applications SAS: Working with Data

Stat 302 Statistical Software and Its Applications SAS: Working with Data 1 Stat 302 Statistical Software and Its Applications SAS: Working with Data Fritz Scholz Department of Statistics, University of Washington Winter Quarter 2015 February 26, 2015 2 Outline Chapter 7 in

More information

Centering and Interactions: The Training Data

Centering and Interactions: The Training Data Centering and Interactions: The Training Data A random sample of 150 technical support workers were first given a test of their technical skill and knowledge, and then randomly assigned to one of three

More information

SAS Programs and Output for Alternative Experimentals Designs. Section 13-8 in Howell (2010)

SAS Programs and Output for Alternative Experimentals Designs. Section 13-8 in Howell (2010) SAS Programs and Output for Alternative Experimentals Designs. Section 13-8 in Howell (2010) In Statistical Methods for Psychology (7 th ed.) I discuss various alternative experimental designs involving

More information

Stat-340 Term Test Spring Term

Stat-340 Term Test Spring Term Stat-340 Term Test 1 2015 Spring Term Part 1 - Multiple Choice Enter your answers to the multiple choice questions on the provided bubble sheets. Each of the multiple choice question is worth 1 mark there

More information

Tutorial #1: Using Latent GOLD choice to Estimate Discrete Choice Models

Tutorial #1: Using Latent GOLD choice to Estimate Discrete Choice Models Tutorial #1: Using Latent GOLD choice to Estimate Discrete Choice Models In this tutorial, we analyze data from a simple choice-based conjoint (CBC) experiment designed to estimate market shares (choice

More information

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

EXST SAS Lab Lab #8: More data step and t-tests EXST SAS Lab Lab #8: More data step and t-tests Objectives 1. Input a text file in column input 2. Output two data files from a single input 3. Modify datasets with a KEEP statement or option 4. Prepare

More information

Creating a data file and entering data

Creating a data file and entering data 4 Creating a data file and entering data There are a number of stages in the process of setting up a data file and analysing the data. The flow chart shown on the next page outlines the main steps that

More information

WEB MATERIAL. eappendix 1: SAS code for simulation

WEB MATERIAL. eappendix 1: SAS code for simulation WEB MATERIAL eappendix 1: SAS code for simulation /* Create datasets with variable # of groups & variable # of individuals in a group */ %MACRO create_simulated_dataset(ngroups=, groupsize=); data simulation_parms;

More information

Contents of SAS Programming Techniques

Contents of SAS Programming Techniques Contents of SAS Programming Techniques Chapter 1 About SAS 1.1 Introduction 1.1.1 SAS modules 1.1.2 SAS module classification 1.1.3 SAS features 1.1.4 Three levels of SAS techniques 1.1.5 Chapter goal

More information

Level 0 Historical. 1. Level 0 Historical Tutorial. 1.1 Introduction. Notes:

Level 0 Historical. 1. Level 0 Historical Tutorial. 1.1 Introduction. Notes: Level 0 Historical 1. Level 0 Historical Tutorial 1.1 Introduction Welcome to the Level 0 Historical tutorial. Let's begin with some navigation tips. There are several ways to move through this tutorial:

More information

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

Stat 302 Statistical Software and Its Applications SAS: Data I/O Stat 302 Statistical Software and Its Applications SAS: Data I/O Yen-Chi Chen Department of Statistics, University of Washington Autumn 2016 1 / 33 Getting Data Files Get the following data sets from the

More information

Week 6, Week 7 and Week 8 Analyses of Variance

Week 6, Week 7 and Week 8 Analyses of Variance Week 6, Week 7 and Week 8 Analyses of Variance Robyn Crook - 2008 In the next few weeks we will look at analyses of variance. This is an information-heavy handout so take your time reading it, and don

More information

International data products

International data products International data products Public use files... 376 Codebooks for the PISA 2015 public use data files... 377 Data compendia tables... 378 Data analysis and software tools... 378 International Database

More information

Comprehend Pro v.1 User s Manual

Comprehend Pro v.1 User s Manual xxxx Comprehend Pro v.1 User s Manual Comprehend Pro v.1 User s Manual Oct 23, 2010 ALCA 2010 Chapter 1 Logging into Comprehend Two ways exist for accessing the web-based Comprehend Data depending on your

More information

Select Cases. Select Cases GRAPHS. The Select Cases command excludes from further. selection criteria. Select Use filter variables

Select Cases. Select Cases GRAPHS. The Select Cases command excludes from further. selection criteria. Select Use filter variables Select Cases GRAPHS The Select Cases command excludes from further analysis all those cases that do not meet specified selection criteria. Select Cases For a subset of the datafile, use Select Cases. In

More information

A SAS MACRO for estimating bootstrapped confidence intervals in dyadic regression

A SAS MACRO for estimating bootstrapped confidence intervals in dyadic regression A SAS MACRO for estimating bootstrapped confidence intervals in dyadic regression models. Robert E. Wickham, Texas Institute for Measurement, Evaluation, and Statistics, University of Houston, TX ABSTRACT

More information

Using HLM for Presenting Meta Analysis Results. R, C, Gardner Department of Psychology

Using HLM for Presenting Meta Analysis Results. R, C, Gardner Department of Psychology Data_Analysis.calm: dacmeta Using HLM for Presenting Meta Analysis Results R, C, Gardner Department of Psychology The primary purpose of meta analysis is to summarize the effect size results from a number

More information

Chapter 15 Mixed Models. Chapter Table of Contents. Introduction Split Plot Experiment Clustered Data References...

Chapter 15 Mixed Models. Chapter Table of Contents. Introduction Split Plot Experiment Clustered Data References... Chapter 15 Mixed Models Chapter Table of Contents Introduction...309 Split Plot Experiment...311 Clustered Data...320 References...326 308 Chapter 15. Mixed Models Chapter 15 Mixed Models Introduction

More information

COWLEY COLLEGE & Area Vocational Technical School

COWLEY COLLEGE & Area Vocational Technical School COWLEY COLLEGE & Area Vocational Technical School COURSE PROCEDURE FOR INTRODUCTION TO SQL CIS1902 1 Credit Hour Student Level: This course is open to students on the college level in either Freshman or

More information

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

SAS Programs SAS Lecture 4 Procedures. Aidan McDermott, April 18, Outline. Internal SAS formats. SAS Formats SAS Programs SAS Lecture 4 Procedures Aidan McDermott, April 18, 2006 A SAS program is in an imperative language consisting of statements. Each statement ends in a semi-colon. Programs consist of (at least)

More information

Online Supplementary Appendix for. Dziak, Nahum-Shani and Collins (2012), Multilevel Factorial Experiments for Developing Behavioral Interventions:

Online Supplementary Appendix for. Dziak, Nahum-Shani and Collins (2012), Multilevel Factorial Experiments for Developing Behavioral Interventions: Online Supplementary Appendix for Dziak, Nahum-Shani and Collins (2012), Multilevel Factorial Experiments for Developing Behavioral Interventions: Power, Sample Size, and Resource Considerations 1 Appendix

More information

DSCI 325: Handout 9 Sorting and Options for Printing Data in SAS Spring 2017

DSCI 325: Handout 9 Sorting and Options for Printing Data in SAS Spring 2017 DSCI 325: Handout 9 Sorting and Options for Printing Data in SAS Spring 2017 There are a handful of statements (TITLE, FOOTNOTE, WHERE, BY, etc.) that can be used in a wide variety of procedures. For example,

More information

Advanced Search with Custom Reports Brandywine School District. Data Service Center

Advanced Search with Custom Reports Brandywine School District. Data Service Center Advanced Search with Custom Reports Brandywine School District Data Service Center www.dataservice.org 478-8957 October, 2004 Table of Contents Advanced Search... 3 Customizing the Criteria... 4 Customizing

More information

From Manual to Automatic with Overdrive - Using SAS to Automate Report Generation Faron Kincheloe, Baylor University, Waco, TX

From Manual to Automatic with Overdrive - Using SAS to Automate Report Generation Faron Kincheloe, Baylor University, Waco, TX Paper 152-27 From Manual to Automatic with Overdrive - Using SAS to Automate Report Generation Faron Kincheloe, Baylor University, Waco, TX ABSTRACT This paper is a case study of how SAS products were

More information

STA9750 Lecture I OUTLINE 1. WELCOME TO 9750!

STA9750 Lecture I OUTLINE 1. WELCOME TO 9750! STA9750 Lecture I OUTLINE 1. Welcome to STA9750! a. Blackboard b. Tentative syllabus c. Remote access to SAS 2. Introduction to reading data with SAS a. Manual input b. Reading from a text file c. Import

More information

Path Analysis using lm and lavaan

Path Analysis using lm and lavaan Path Analysis using lm and lavaan Grant B. Morgan Baylor University September 10, 2014 First of all, this post is going to mirror a page on the Institute for Digital Research and Education (IDRE) site

More information

SYLLABUS. Departmental Syllabus. Departmental Syllabus. Departmental Syllabus. Departmental Syllabus. Departmental Syllabus

SYLLABUS. Departmental Syllabus. Departmental Syllabus. Departmental Syllabus. Departmental Syllabus. Departmental Syllabus SYLLABUS DATE OF LAST REVIEW: 11/6/2018 CIP CODE: 11.0801 SEMESTER: COURSE TITLE: COURSE NUMBER: JavaScript CIST0152 CREDIT HOURS: 3 INSTRUCTOR: OFFICE LOCATION: OFFICE HOURS: TELEPHONE: EMAIL: KCKCC issued

More information

Introduction. How to Use this Document. What is SAS? Launching SAS. Windows in SAS for Windows. Research Technologies at Indiana University

Introduction. How to Use this Document. What is SAS? Launching SAS. Windows in SAS for Windows. Research Technologies at Indiana University Research Technologies at Indiana University Introduction How to Use this Document This document is an introduction to SAS for Windows. SAS is a large software package with scores of modules and utilities.

More information

11/07 11/08/ /5/2012 Software Technology, Inc. Thomas Murphy

11/07 11/08/ /5/2012 Software Technology, Inc. Thomas Murphy 0 Alabama INFOCUS Webinar 11/07 11/08/2012 11/5/2012 Software Technology, Inc. Thomas Murphy 0 Alabama INFOCUS Webinar OBJECTIVES: Tabular Report Introduce customers to the basics of building reports with

More information

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

CSC 328/428 Summer Session I 2002 Data Analysis for the Experimenter FINAL EXAM options pagesize=53 linesize=76 pageno=1 nodate; proc format; value $stcktyp "1"="Growth" "2"="Combined" "3"="Income"; data invstmnt; input stcktyp $ perform; label stkctyp="type of Stock" perform="overall

More information

options nofmterr; ods html close; *STOPS WRITING TO THE CURRENT RESULTS VIEWER;

options nofmterr; ods html close; *STOPS WRITING TO THE CURRENT RESULTS VIEWER; options nofmterr; ods html close; *STOPS WRITING TO THE CURRENT RESULTS VIEWER; ods html; *OPENS A NEW RESULTS VIEWER; /********************************************************** The directory in the libname

More information

Introduction to Data Science

Introduction to Data Science Introduction to Data Science CS 491, DES 430, IE 444, ME 444, MKTG 477 UIC Innovation Center Fall 2017 and Spring 2018 Instructors: Charles Frisbie, Marco Susani, Michael Scott and Ugo Buy Author: Ugo

More information

Business Process Document Student Records: Processing Block Enrollments

Business Process Document Student Records: Processing Block Enrollments Student Records: Processing Block Enrollments- 111407 Department Responsibility/Role File Name Version Document Generation Date 12/5/2007 Date Modified 12/5/2007 Last Changed by Status SA 8.9 - Student

More information

Poisson Regressions for Complex Surveys

Poisson Regressions for Complex Surveys Poisson Regressions for Complex Surveys Overview Researchers often use sample survey methodology to obtain information about a large population by selecting and measuring a sample from that population.

More information

Introduction to DATA Step Programming SAS Basics II. Susan J. Slaughter, Avocet Solutions

Introduction to DATA Step Programming SAS Basics II. Susan J. Slaughter, Avocet Solutions Introduction to DATA Step Programming SAS Basics II Susan J. Slaughter, Avocet Solutions DATA versus PROC steps Two basic parts of SAS programs DATA step PROC step Begin with DATA statement Begin with

More information

APPLICATION FOR THE UAL FOUNDATION DIPLOMA IN ART & DESIGN

APPLICATION FOR THE UAL FOUNDATION DIPLOMA IN ART & DESIGN Course title: UAL Foundation Diploma in Art & Design APPLICATION FOR THE UAL FOUNDATION DIPLOMA IN ART & DESIGN Start date: September 2015 One Year Please complete this form and return it to: international@falmouth.ac.uk

More information

INTRODUCTION to SAS STATISTICAL PACKAGE LAB 3

INTRODUCTION to SAS STATISTICAL PACKAGE LAB 3 Topics: Data step Subsetting Concatenation and Merging Reference: Little SAS Book - Chapter 5, Section 3.6 and 2.2 Online documentation Exercise I LAB EXERCISE The following is a lab exercise to give you

More information

PRESBYTERIAN UNIVERSITY COLLEGE,GHANA. Application Form. Master of Education in Educational Studies

PRESBYTERIAN UNIVERSITY COLLEGE,GHANA. Application Form. Master of Education in Educational Studies PRESBYTERIAN UNIVERSITY COLLEGE,GHANA Application Form Master of Education in Educational Studies IMPORTANT INFORMATION: CANDIDATES ARE REQUESTED TO SEND THE COMPLETED FORM TO: The Registrar Presbyterian

More information

STATISTICS (STAT) Statistics (STAT) 1

STATISTICS (STAT) Statistics (STAT) 1 Statistics (STAT) 1 STATISTICS (STAT) STAT 2013 Elementary Statistics (A) Prerequisites: MATH 1483 or MATH 1513, each with a grade of "C" or better; or an acceptable placement score (see placement.okstate.edu).

More information

ABSTRACT INTRODUCTION PROBLEM: TOO MUCH INFORMATION? math nrt scr. ID School Grade Gender Ethnicity read nrt scr

ABSTRACT INTRODUCTION PROBLEM: TOO MUCH INFORMATION? math nrt scr. ID School Grade Gender Ethnicity read nrt scr ABSTRACT A strategy for understanding your data: Binary Flags and PROC MEANS Glen Masuda, SRI International, Menlo Park, CA Tejaswini Tiruke, SRI International, Menlo Park, CA Many times projects have

More information

Baruch College STA Senem Acet Coskun

Baruch College STA Senem Acet Coskun Baruch College STA 9750 BOOK BUY A Predictive Mode Senem Acet Coskun Table of Contents Summary 3 Why this topic? 4 Data Sources 6 Variable Definitions 7 Descriptive Statistics 8 Univariate Analysis 9 Two-Sample

More information

A SAS Macro for Producing Benchmarks for Interpreting School Effect Sizes

A SAS Macro for Producing Benchmarks for Interpreting School Effect Sizes A SAS Macro for Producing Benchmarks for Interpreting School Effect Sizes Brian E. Lawton Curriculum Research & Development Group University of Hawaii at Manoa Honolulu, HI December 2012 Copyright 2012

More information

Ad Hoc Reporting Manual

Ad Hoc Reporting Manual Ad Hoc Reporting Manual Version 2011M.1038 This manual created by Custom Computer Specialists, Inc. 70 Suffolk Court Hauppauge, NY 11788 www.customonline.com Copyright 2008 Custom Computer Specialists,

More information

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

Stat 302 Statistical Software and Its Applications SAS: Data I/O & Descriptive Statistics Stat 302 Statistical Software and Its Applications SAS: Data I/O & Descriptive Statistics Fritz Scholz Department of Statistics, University of Washington Winter Quarter 2015 February 19, 2015 2 Getting

More information

SAS Online Training: Course contents: Agenda:

SAS Online Training: Course contents: Agenda: SAS Online Training: Course contents: Agenda: (1) Base SAS (6) Clinical SAS Online Training with Real time Projects (2) Advance SAS (7) Financial SAS Training Real time Projects (3) SQL (8) CV preparation

More information

Why choose between SAS Data Step and PROC SQL when you can have both?

Why choose between SAS Data Step and PROC SQL when you can have both? Paper QT-09 Why choose between SAS Data Step and PROC SQL when you can have both? Charu Shankar, SAS Canada ABSTRACT As a SAS coder, you've often wondered what the SQL buzz is about. Or vice versa you

More information

INTRODUCTION TO SPSS OUTLINE 6/17/2013. Assoc. Prof. Dr. Md. Mujibur Rahman Room No. BN Phone:

INTRODUCTION TO SPSS OUTLINE 6/17/2013. Assoc. Prof. Dr. Md. Mujibur Rahman Room No. BN Phone: INTRODUCTION TO SPSS Assoc. Prof. Dr. Md. Mujibur Rahman Room No. BN-0-024 Phone: 89287269 E-mail: mujibur@uniten.edu.my OUTLINE About the four-windows in SPSS The basics of managing data files The basic

More information

using and Understanding Formats

using and Understanding Formats using and Understanding SAS@ Formats Howard Levine, DynaMark, Inc. Oblectives The purpose of this paper is to enable you to use SAS formats to perform the following tasks more effectively: Improving the

More information

Discoverer Viewer. User Manual. for SDS

Discoverer Viewer. User Manual. for SDS Discoverer Viewer User Manual for SDS saskatchewan.ca 2017 Table of Contents Introduction... 3 How to Get Started... 3 Logging In... 3 First Time Logging In Preferences Changes... 4 Worksheet List... 5

More information

CMU MSP : SAS FORMATs and INFORMATs Howard Seltman Nov. 7+12, 2018

CMU MSP : SAS FORMATs and INFORMATs Howard Seltman Nov. 7+12, 2018 CMU MSP 36-601: SAS FORMATs and INFORMATs Howard Seltman Nov. 7+12, 2018 1) Formats and informats flexibly re-represent data in a data set on input or output. Common uses include reading and writing dates,

More information

Missing Data Missing Data Methods in ML Multiple Imputation

Missing Data Missing Data Methods in ML Multiple Imputation Missing Data Missing Data Methods in ML Multiple Imputation PRE 905: Multivariate Analysis Lecture 11: April 22, 2014 PRE 905: Lecture 11 Missing Data Methods Today s Lecture The basics of missing data:

More information