+ Reply to Thread
Results 1 to 6 of 6

RSQ (Correlation)

  1. #1
    Forum Contributor
    Join Date
    07-02-2008
    Location
    Utah
    Posts
    171

    RSQ (Correlation)

    Hi,

    I have 6 known X's for which I would like to find the correlation coefficient with a single known Y. The problem is that the sample size (n) needs to be adjusted down whenever a X doesn't have data.

    For example, in column F I don't begin to have data until row49 and so i only want to correlate row49 through the last row of data in column F (row375) with the same rows in column I.

    How would I dynamically find all the values in a given column and then correlate those with the same rows in column I? The data will get larger and larger every month and so I need a formula to offset to the first non-blank row in a X column and then correlate with the same offset data range in column I.

    Thanks,
    John
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-02-2008
    Location
    Utah
    Posts
    171

    Re: RSQ (Correlation)

    Any help would be very very very appreciated

  3. #3
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: RSQ (Correlation)

    Quote Originally Posted by John Bates View Post
    How would I dynamically find all the values in a given column and then correlate those with the same rows in column I?
    Don't quite understand this part of it. What exactly are you looking to do? As for the formula to get dynamic ranges, for column C, it would be =C11:INDEX(C:C,MATCH(9.99999999999999E+307,C:C)), for example. You should be able to either used this as a named range or plug it in anywhere you already have a range for C11:C1000 or C11:C375.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: RSQ (Correlation)

    How can you correlate six x values with a single y? Correlation is a measure of paired correspondence.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: RSQ (Correlation)

    Hi, here is a possible solution. Seems to work, as far as I can see. It can without doubt be made much more simple and efficient, though...

    The method is to identify where each X-series starts and ends,
    return the addresses and use these to create a range to use with INDIRECT in your RSQ-formula.


    First frame contains the code for column C, (C1-C9).
    These codes can be copied across to col H.
    Row 1 (letter C to H) must however be entered manually


    Please Login or Register  to view this content.
    Here's the result from the code (A1:A9)

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: RSQ (Correlation)

    Hi, you may have to replace all the ";" with "," to make the code work.
    estige

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1