Help using Base SAS procedures

covariance calculation

Reply
Super Contributor
Posts: 338

covariance calculation

Hi Colleagues,

I was trying to find out the SAS script to calculate the Covariance of the following data set with two variables (Hours and Marks) but I was unsuccessful.

Would appreciate if you could help.

Hours Marks
9 39
15 56
25 93
14 61
10 50
18 75
0 32
16 85
5 42
19 70
16 66
20 80


Thanks

Mirisage
Super Contributor
Posts: 281

Re: covariance calculation

PROC CORR with the COV option will compute covariances.
Super Contributor
Posts: 338

Re: covariance calculation

Hi Paige,

A big thanks. Yes, it worked.

Mirisage
Ask a Question
Discussion stats
  • 2 replies
  • 443 views
  • 0 likes
  • 2 in conversation