16b. Accessing Data: Means in SAS ®. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training.

Slides:



Advertisements
Similar presentations
Calculation of Sampling Errors MICS3 Regional Workshop on Data Archiving and Dissemination Alexandria, Egypt 3-7 March, 2007.
Advertisements

4. NLTS2 Data Sources: Parent and Youth Surveys. 4. Sources: Parent and Youth Surveys Prerequisites Recommended modules to complete before viewing this.
14a. Accessing Data Files in SPSS ®. 1 Prerequisites Recommended modules to complete before viewing this module 1. Introduction to the NLTS2 Training.
Prerequisites Recommended modules to complete before viewing this module 1. Introduction to the NLTS2 Training Modules 2. NLTS2 Study Overview 3. NLTS2.
12. NLTS2 Documentation: Quick References. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training.
Survey Methodology Nonresponse EPID 626 Lecture 6.
13.Analysis Demonstration: Descriptive/Comparative Analysis Using Longitudinal Data.
11. NLTS2 Documentation: Data Dictionaries. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2.
The SAS ® System Additional Information on Statistical Analysis Programming.
10. NLTS2 Documentation Overview. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training Modules.
Preparing Data for Quantitative Analysis
Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
9. Weighting and Weighted Standard Errors. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training.
Knowing Understanding the Basics Writing your own code part 2 SAS Lab.
19.Multivariate Analysis Using NLTS2 Data. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training.
ICCS 2009 IDB Seminar – Nov 24-26, 2010 – IEA DPC, Hamburg, Germany Using the IEA IDB Analyzer to merge and analyze data.
ICCS 2009 IDB Workshop, 18 th February 2010, Madrid Using the IEA IDB Analyzer to merge and analyze data.
Statistics in Science  Introducing SAS ® software Acknowlegements to David Williams Caroline Brophy.
7.Implications for Analysis: Parent/Youth Survey Data.
SAS Programming: Working With Variables. Data Step Manipulations New variables should be created during a Data step Existing variables should be manipulated.
17a.Accessing Data: Manipulating Variables in SPSS ®
11 ACS Public Use Microdata Samples of 2005 and 2006 – How to Use the Replicate Weights B. Dale Garrett and Michael Starsinic U.S. Census Bureau AAPOR.
Today: Run SAS programs on Saturn (UNIX tutorial) Runs SAS programs on the PC.
Ann Arbor ASA ‘Up and Running’ Series: SPSS Prepared by volunteers of the Ann Arbor Chapter of the American Statistical Association, in cooperation with.
Quick Data Summaries in SAS Start by bringing in data –Use permanent data set for these examples Proc Tabulate –Produces summaries very quickly and easily.
15a.Accessing Data: Frequencies in SPSS ®. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training.
15b. Accessing Data: Frequencies in SAS ®. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training.
Data Preparation for Analytics Using SAS Gerhard Svolba, Ph.D. Reviewed by Madera Ebby, Ph.D.
SAS Lecture 5 – Some regression procedures Aidan McDermott, April 25, 2005.
Chapter 9 Producing Descriptive Statistics PROC MEANS; Summarize descriptive statistics for continuous numeric variables. PROC FREQ; Summarize frequency.
Introduction to SAS Essentials Mastering SAS for Data Analytics Alan Elliott and Wayne Woodward SAS ESSENTIALS -- Elliott & Woodward1.
6. Implications for Analysis: Data Content. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2.
8.Implications for Analysis: School Survey, Student Assessment, and Transcript Data.
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.
2. NLTS2 Study Overview. 1 Prerequisites Recommended module to complete before viewing this module  1. Introduction to the NLTS2 Training Modules.
18b. PROC SURVEY Procedures in SAS ®. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training.
1 Experimental Statistics - week 2 Review: 2-sample t-tests paired t-tests Thursday: Meet in 15 Clements!! Bring Cody and Smith book.
Quantify the Example Data First, code and quantify the data (assign column locations & variable names) Use the sample data to create a data set from the.
BMTRY 789 Introduction to SAS Programming Lecturer: Annie N. Simpson, MSc.
A Brief Introduction to PROC TRANSPOSE prepared by Voytek Grus for
Knowing Understanding the Basics Writing your own code SAS Lab.
1.Introduction to the NLTS2 Training Modules Jose Blackorby Renee Cameto Camille Marder Christopher Sanford Kathryn Valdes James Van Campen SRI International.
Example SPSS Basic Medical Statistics Course October 2010 Wilma Heemsbergen.
Regression in SAS Caitlin Phelps. Importing Data  Proc Import:  Read in variables in data set  May need some options incase SAS doesn’t guess the format.
SAS ODS (Output Delivery System) Donald Miller 812 Oswald Tower ;
1 Data Manipulation (with SQL) HRP223 – 2010 October 13, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Chapter 5 Reading and Manipulating SAS ® Data Sets and Creating Detailed Reports Xiaogang Su Department of Statistics University of Central Florida.
Lecture 3 Topic - Descriptive Procedures Programs 3-4 LSB 4:1-4.4; 4:9:4:11; 8:1-8:5; 5:1-5.2.
ICCS 2009 IDB Workshop, 18 th February 2010, Madrid 1 Training Workshop on the ICCS 2009 database Weighting and Variance Estimation picture.
SAS Basics. Windows Program Editor Write/edit all your statements here. Log Watch this for any errors in program as it runs. Output Will automatically.
Introduction to Survey Sampling
Lesson 8 - Topics Creating SAS datasets from procedures Using ODS and data steps to make reports Using PROC RANK Programs in course notes LSB 4:11;5:3.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Fall 2010 Session Two Xin Zhang – Prof. Richard de Neufville.
14b. Accessing Data Files in SAS ®. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training.
Statistics Canada Citizenship and Immigration Canada Methodological issues.
Computing with SAS Software A SAS program consists of SAS statements. 1. The DATA step consists of SAS statements that define your data and create a SAS.
16a. Accessing Data: Means in SPSS ®. 16a. Accessing Data: Means in SSPS ® 1 Prerequisites Recommended modules to complete before viewing this module.
Customize SAS Output Using ODS Joan Dong. The Output Delivery System (ODS) gives you greater flexibility in generating, storing, and reproducing SAS procedure.
Multiple Imputation using SAS Don Miller 812 Oswald Tower
17b.Accessing Data: Manipulating Variables in SAS ®
MICS4 Data Processing Workshop Multiple Indicator Cluster Surveys Data Processing Workshop Tabulation Programs.
1 EPIB 698C Lecture 1 Instructor: Raul Cruz-Cano
Based on Learning SAS by Example: A Programmer’s Guide Chapters 1 & 2
Online Programming| Online Training| Real Time Projects | Certifications |Online Classes| Corporate Training |Jobs| CONTACT US: STANSYS SOFTWARE SOLUTIONS.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 8, 13, & 24 By Tasha Chapman, Oregon Health Authority.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 16 & 17 By Tasha Chapman, Oregon Health Authority.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 5 & 6 By Ravi Mandal.
Applied Business Forecasting and Regression Analysis
Producing Descriptive Statistics
Presentation transcript:

16b. Accessing Data: Means in SAS ®

1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training Modules  2. NLTS2 Study Overview  3. NLTS2 Study Design and Sampling  NLTS2 Data Sources, either 4. Parent and Youth Surveys or 5. School Surveys, Student Assessments, and Transcripts  9. Weighting and Weighted Standard Errors

16b. Accessing Data: Means in SAS ® 2 Prerequisites Recommended modules to complete before viewing this module (cont’d)  NLTS2 Documentation 10. Overview 11. Data Dictionaries 12. Quick References  Accessing Data 14b. Files in SAS 15b. Frequencies in SAS

16b. Accessing Data: Means in SAS ® 3 Overview  Purpose  Exploring existing data Means Comparative means  Weights  Closing  Important information

16b. Accessing Data: Means in SAS ® 4 NLTS2 restricted-use data NLTS2 data are restricted. Data used in these presentations are from a randomly selected subset of the restricted-use NLTS2 data. Results in these presentations cannot be replicated with the NLTS2 data licensed by NCES.

16b. Accessing Data: Means in SAS ® 5 Purpose Learn to  Run simple statistical procedures Means  Watch for Missing values n’s Weighted vs. unweighted data

16b. Accessing Data: Means in SAS ® 6 Means How to run means Means are run on continuous variables such as  Number of months  Income  Age  Test scores Syntax with options to control printing PROC MEANS data = sasdb.n2w2dirassess mean min max n maxdec=2; /*limits output*/ VAR ndaAP_w ; run ; These results cannot be replicated with full dataset; all output in modules generated with a random subset of the full data.

16b. Accessing Data: Means in SAS ® 7 Means These results cannot be replicated with full dataset; all output in modules generated with a random subset of the full data.

16b. Accessing Data: Means in SAS ® 8 Means Important: Do not use the standard errors from this procedure.  These data are from a stratified sample, so standard errors are not calculated correctly in this procedure.  Standard errors in this procedure assume a simple random sample, not a complex stratified sample. More about this later. These results cannot be replicated with full dataset; all output in modules generated with a random subset of the full data.

16b. Accessing Data: Means in SAS ® 9 Comparative means As with frequencies, comparative means can be run in a single step. The by- (or independent) variable must be categorical. Reminder: Do not include the standard error in statistics. Syntax: Simply add a CLASS statement. PROC MEANS data = sasdb.n2w2dirassess mean min max n maxdec=2 ; CLASS na_age4 ; VAR ndaAP_w ; These results cannot be replicated with full dataset; all output in modules generated with a random subset of the full data.

16b. Accessing Data: Means in SAS ® 10 Comparative means These results cannot be replicated with full dataset; all output in modules generated with a random subset of the full data.

16b. Accessing Data: Means in SAS ® 11 Means and comparative means: example Means and comparative means  Use the Wave 3 parent/youth interview file.  Run means on np3NbrProbs.  Run comparative means on np3NbrProbs by W3_AgeHdr2005 and by W3_DisHdr2005. These results cannot be replicated with full dataset; all output in modules generated with a random subset of the full data.

16b. Accessing Data: Means in SAS ® 12 Means and comparative means: Example These results cannot be replicated with full dataset; all output in modules generated with a random subset of the full data.

16b. Accessing Data: Means in SAS ® 13 Weights How to weight data. Running procedures unweighted is useful for exploratory analysis and recommended for becoming familiar with the data.  It is important to review the unweighted n’s. However, unweighted results must never be reported. The procedures we used to calculate means and comparative means can be run with weights.  The weighted means will be correct.  The weighted standard errors will not be correct using these procedures; do not report them. Weighting in SAS requires a WEIGHT statement.  The procedures themselves do not change.  Weights are applied when there is a WEIGHT statement. These results cannot be replicated with full dataset; all output in modules generated with a random subset of the full data.

16b. Accessing Data: Means in SAS ® 14 Weights Syntax PROC MEANS data = sasdb.n2w3ParYouth mean min max maxdec=2 ; WEIGHT np3Wt; VAR np3NbrProbs ; run ; To turn the weight off, omit the statement or comment it out. PROC MEANS data = sasdb.n2w3ParYouth mean min max maxdec=2 ; *WEIGHT np3Wt; VAR np3NbrProbs ; run ; These results cannot be replicated with full dataset; all output in modules generated with a random subset of the full data.

16b. Accessing Data: Means in SAS ® 15 Weights: Example Weights: Run the earlier examples with a weight.  Run means example weighted with np3Wt. W3 Parent interview weight np3wt np3NbrProbs np3NbrProbs by W3_AgeHdr2005 and by W3_DisHdr2005 These results cannot be replicated with full dataset; all output in modules generated with a random subset of the full data.

16b. Accessing Data: Means in SAS ® 16 Weights: Example These results cannot be replicated with full dataset; all output in modules generated with a random subset of the full data.

16b. Accessing Data: Means in SAS ® 17 Weights: Example These results cannot be replicated with full dataset; all output in modules generated with a random subset of the full data.

16b. Accessing Data: Means in SAS ® 18 Weighted example These results cannot be replicated with full dataset; all output in modules generated with a random subset of the full data.

16b. Accessing Data: Means in SAS ® 19 Unweighted example These results cannot be replicated with full dataset; all output in modules generated with a random subset of the full data.

16b. Accessing Data: Means in SAS ® 20 Closing Topics discussed in this module  Exploring existing data Means Comparative means  Weights Next module:  17b. Accessing Data: Manipulating Variables in SAS

16b. Accessing Data: Means in SAS ® 21 Important information  NLTS2 website contains reports, data tables, and other project-related information  Information about obtaining the NLTS2 database and documentation can be found on the NCES website  General information about restricted data licenses can be found on the NCES website  address: