1 / 4

Type= Corr

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

gari
Download Presentation

Type= Corr

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Type=Corr SAS

  2. Creating a Type=Corr Data SetFrom an Existing Raw Data File PROC CORR NOMISS DATA=KLWOUTP=GRADES; VAR CLASSWRK MIDTERM FINAL_EX; PROC PRINT;

  3. 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

  4. 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

More Related