Help using Base SAS procedures

Urvish

Reply
Regular Contributor
Posts: 195

Urvish

hi

i have two dataset like this

data test;

input age;

cards;

20

21

22

;

data test1;

input height;

cards;

5

6

7

;

nw i want to kw the correlation b/w age and height by using proc corr  without merging two datasets coz i have 15 lacks of observation

can anybody tell me the correct solution

PROC Star
Posts: 7,363

Urvish

It would help if you show an example of what you are trying to achieve.  Plus, when you post, the subject line is intended to let people know the topic .. not who the poster was.

Super User
Posts: 9,682

Urvish

Since you do not want merge these two datasets. then use view to make a dummy table which used in proc corr.

Such as:

data corr/view=corr;

merge test test1;

run;

proc corr data=corr ;

var age height;

run

But I strongly recommend you to use proc stdize to standardize the age and heigth to avoid scale issue.

Ksharp

Ask a Question
Discussion stats
  • 2 replies
  • 118 views
  • 0 likes
  • 3 in conversation