ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   correl covar for two dimensional table (https://www.excelbanter.com/excel-programming/435662-correl-covar-two-dimensional-table.html)

ALNIOS ANOGIS

correl covar for two dimensional table
 
Dear,

I have table.

x/y 4 6 8 p(x)
14 0.16 0.19 0.12 0.47
16 0.14 0.19 0.2 0.53
p(y) 0.3 0.38 0.32 1

correl=0.1976 covar=0.1257

Would you give me the way to get results of ?

Regards,Junho

joel[_160_]

correl covar for two dimensional table
 

ALNIOS ANOGIS;545066 Wrote:
Dear,

I have table.

x/y 4 6 8 p(x)
14 0.16 0.19 0.12 0.47
16 0.14 0.19 0.2 0.53
p(y) 0.3 0.38 0.32 1

correl=0.1976 covar=0.1257

Would you give me the way to get results of ?

Regards,Junho


You can use the following from VBA

Results = Application.WorksheetFunction.Correl(Array1, Array2)

Results = Application.WorksheetFunction.Covar(Array1, Array2)

The Arrays have to start at index 0.


--
joel
------------------------------------------------------------------------
joel's Profile: http://www.thecodecage.com/forumz/member.php?userid=229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=149985

<a href="http://www.thecodecage.com">Microsoft Office Help</a>



All times are GMT +1. The time now is 04:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com