Type=Corr SAS.

Slides:



Advertisements
Similar presentations
What is shape function ? shape function is a function that will give the displacements inside an element if its displacement at all the node locations.
Advertisements

Cronbach’s Alpha & Maximized 4. SAS proc corr nosimple nocorr nomiss alpha; var q1-q10; run; Cronbach Coefficient Alpha VariablesAlpha Raw
中国人民大学 统计学院 王 剑 From SAS to R. 你属于哪一类 ? 既熟悉 SAS ,又熟悉 R 熟悉 SAS , 但不熟悉 R 不熟悉 SAS ,但熟悉 R 既不熟悉 SAS ,也不熟悉 R.
Slide C.1 SAS MathematicalMarketing Appendix C: SAS Software Uses of SAS  CRM  datamining  data warehousing  linear programming  forecasting  econometrics.
Combining Lags and Arrays [and a little macro] Lynn Lethbridge SHRUG OCT 28, 2011.
Path Analysis SAS/Calis. Read in the Data options formdlim='-' nodate pagno=min; TITLE 'Path Analysis, Ingram Data' ; data Ingram(type=corr); INPUT _TYPE_.
Xuhua Xia Slide 1 Correlation Simple correlation –between two variables Multiple and Partial correlations –between one variable and a set of other variables.
Experimental design and analyses of experimental data Lesson 2 Fitting a model to data and estimating its parameters.
Comparing Regression Lines
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.
Continuous Moderator Variables
Introduction to SAS Lecture 2 Brian Healy.
Introduction To Correlation with SAS Sam Gordji Weir 107.
Welcome to SAS…Session..!. What is SAS..! A Complete programming language with report formatting with statistical and mathematical capabilities.
Collection and Analysis of Data CPH 608 Spring 2015.
A Concise Display of Multiple Response Items Patrick Thornton.
© 2002 Prentice-Hall, Inc.Chap 14-1 Introduction to Multiple Regression Model.
Introduction to SAS BIO 226 – Spring Outline Windows and common rules Getting the data –The PRINT and CONTENT Procedures Manipulating the data.
Topic 2: An Example. Leaning Tower of Pisa Construction began in 1173 and by 1178 (2 nd floor), it began to sink Construction resumed in To compensate.
Chapter 20 Creating Multiple Observations from a Single Record Objectives Create multiple observations from a single record containing repeating blocks.
6-3 Multiple Regression Estimation of Parameters in Multiple Regression.
Learning to love the SAS LAG function Phuse 9-12 October 2011 Herman Ament, MSD, Oss NL Phuse 9-12 October 2011.
Lesson 2 Topic - Reading in data Chapter 2 (Little SAS Book)
6-1 Introduction To Empirical Models Based on the scatter diagram, it is probably reasonable to assume that the mean of the random variable Y is.
1 Filling in the blanks with PROC FREQ Bill Klein Ryerson University.
Chapter 16: Using Lookup Tables to Match Data 1 STAT 541 ©Spring 2012 Imelda Go, John Grego, Jennifer Lasecki and the University of South Carolina.
6-3 Multiple Regression Estimation of Parameters in Multiple Regression.
Lesson 6 - Topics Reading SAS datasets Subsetting SAS datasets Merging SAS datasets.
BUSI 6480 Lecture 8 Repeated Measures.
Chapter 22: Using Best Practices 1 STAT 541 ©Spring 2012 Imelda Go, John Grego, Jennifer Lasecki and the University of South Carolina.
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.
Introduction to Correlation & Regression with SAS Sam Gordji Weir 107.
Simple Linear Regression. Data available : (X,Y) Goal : To predict the response Y. (i.e. to obtain the fitted response function f(X)) Least Squares Fitting.
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.
SPSS Tree Chaid Demo. Variable and Values 1. Analyse value categories and redefine variables as appropriate (Scale, Ordinal, Nominal) 2. Frequency on.
SAS Basics. Windows Program Editor Write/edit all your statement here.
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.
Chapter 17 Supplement: Alternatives to IF-THEN/ELSE Processing STAT 541 ©Spring 2012 Imelda Go, John Grego, Jennifer Lasecki and the University of South.
Applied Epidemiologic Analysis - P8400 Fall 2002 Lab 3 Type I, II Error, Sample Size, and Power Henian Chen, M.D., Ph.D.
Customers perception & buying behavior in choosing cars & Their brand preference in the car market At ABT Maruti Suzuki, Guindy, Chennai SAP Term Project.
Lesson 2 Topic - Reading in data Programs 1 and 2 in course notes –Chapter 2 (Little SAS Book)
Chapter 6: Modifying and Combining Data Sets  The SET statement is a powerful statement in the DATA step DATA newdatasetname; SET olddatasetname;.. run;
Multiple Imputation Multiple Regression. Input From SPSS *** Mult-Imput_M-Reg.sas ***; PROC IMPORT OUT= WORK.IntroQuest DATAFILE= "C:\Users\Vati\Documents\StatData\IntroQ\IntroQ.sav"
Four way analysis Nursing home residence Gender Age Death.
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 3 & 4 By Tasha Chapman, Oregon Health Authority.
제 5장 기술통계 및 추론 PROC MEANS 절차 PROC MEANS <options> ;
Chapter 6: Modifying and Combining Data Sets
ECO 5520 Lab Session.
Introduction to SAS®.
SAS Programming Introduction to SAS.
Match-Merge in the Data Step
SAS Essentials How SAS Thinks
Creating the Example Data
Structured Program Design
Continuous Moderator Variables
Quick Data Summaries in SAS
Using AMOS With SPSS Files.
Outline READ DATA DATA STEPS MERGE DATA PROC IMPORT
SAS® Regression Essentials
How to realize random in SAS Professor: Lijue Student: Zhengliang
Appending and Concatenating Files
Sampling Distribution of the Mean in IML
Multiple Linear Regression
Assignment #3 Programming Language, Spring 2003
UNION Operator keywords Displays all rows from both the tables
Remerging Summary Values
Hans Baumgartner Penn State University
Changing a file from being long to being wide*
Presentation transcript:

Type=Corr SAS

Creating a Type=Corr Data Set From an Existing Raw Data File PROC CORR NOMISS DATA=KLW OUTP=GRADES; VAR CLASSWRK MIDTERM FINAL_EX; PROC PRINT;

The Output OBS _TYPE_ _NAME_ CLASSWRK MIDTERM FINAL_EX   1 MEAN 94.5333 87.4000 89.0000 2 STD 5.4493 7.7993 9.3121 3 N 15.0000 15.0000 15.0000 4 CORR CLASSWRK 1.0000 0.6585 0.7615 5 CORR MIDTERM 0.6585 1.0000 0.5557 6 CORR FINAL_EX 0.7615 0.5557 1.0000

You Have Somebody’s Corr Matrix but not their Raw Data DATA SOL(TYPE=CORR); LENGTH _NAME_ $ 11; *Specify the length of the longest variable name, in this case, misanthropy, 11; INPUT _TYPE_ $ _NAME_ $ idealism relativism misanthropy gender attitude; CARDS; corr idealism 1.0000 -0.0870 -0.1395 -0.1011 0.0501 corr relativism -0.0870 1.0000 0.0525 0.0731 0.1581 corr misanthropy -0.1395 0.0525 1.0000 0.1504 0.2259 corr gender -0.1011 0.0731 0.1504 1.0000 -0.1158 corr attitude 0.0501 0.1581 0.2259 -0.1158 1.0000 N . 153 153 153 153 153 mean . 3.64926 3.35810 2.32157 1.18954 2.37276 std . 0.53439 0.57596 0.67560 0.39323 0.52979 ; *Note the use of a period for missing value for _NAME_ on row of _TYPE_ N, mean, and std.; PROC REG; MODEL attitude = idealism -- gender / STB SCORR2; run; You Have Somebody’s Corr Matrix but not their Raw Data

SPSS Yes, SPSS will do this too. See http://core.ecu.edu/psyc/wuenschk/SPSS/CorrMatrix_Input2SPSS.pdf