+ Reply to Thread
Results 1 to 7 of 7

Need to create a matrix that sums the number of paired observations.

  1. #1
    Registered User
    Join Date
    08-08-2023
    Location
    Utah
    MS-Off Ver
    Office 365
    Posts
    5

    Need to create a matrix that sums the number of paired observations.

    Situation: I am attempting to create 3 matrices from a set of raw data. The current process is to create a series of intermediate matrices and then combine these to create the final 3. This is cumbersome and I wonder if there is a better way.

    If someone can point out how to simplify one of the three matrices I can work out the other two.

    The attached file RatingsComparisons.xlsx contains a small portion of what I need to accomplish.

    Raw data: A trainer and several observers watch a video of technicians performing a series of tasks. The trainer and observers rate each technician on each task performed. The ratings will be either A-D or 1-4. This raw data is replicated 3x in B2:L61 in the attached spreadsheet.

    From the raw data I need to build 3 matrices. Each matrix includes all possible pairings of all observers:
    Observer 1 with Observer 2; Observer 1 with Observer 3, Observer 2 with Observer 3, etc. The final matrices are found in columns P:AE. The intermediate matrices are found in columns AG:HE.

    Within each observer pair I need to count the number of instances in the raw data in which:
    For matrix 1) The paired ratings from both observers match exactly the trainer'ratings. (P3:AE18)
    For matrix 2) The paired ratings from both observers differ from the trainer's ratings (Note: the observers' ratings do not need to match each other). The pair is counted if ratings for both observer X and Y differ from the trainer's rating. (P24:AE39)
    For matrix 3) The paired ratings from both observers match each other but do not match the trainer's ratings (this is a subset of #2 above). (P45:AE60)

    To hopefully make more sense, I have color coded the first three matched pairs (GH & AR; GH & TH; GH & CS) in each of the matrices.

    It doesn't matter if the matrices are lower left or upper right (or full). I just need the complete matrices.

    Finally, if anyone is curious, this project is not about the technician's performance. This is about how closely each observer matches both the trainer and all other observers. The observers are the ones in training and are watching the videos. Observers who consistently differ from the trainer and other observers will repeat the training. The training will be modified in instances in which multiple observers' ratings collectively differ from the trainers' ratings.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Need to create a matrix that sums the number of paired observations.

    Matrix 1: Please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Need to create a matrix that sums the number of paired observations.

    Matrix 2: Please try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Matrix 3: Please try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-08-2023
    Location
    Utah
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Need to create a matrix that sums the number of paired observations.

    Thank you for your assistance. Please note that the three formulas you provided are identical, all creating the first matrix. Could you offer guidance on how to modify these to create the second and third matrices?

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Need to create a matrix that sums the number of paired observations.

    No, the 3 formulas are different at the end and they create 3 different matrixes.

    Did you see the Excel file of Post #3?

    The 3 matrixes are exactly the same as your sample matrixes.
    Attached Images Attached Images
    Last edited by HansDouwe; 09-05-2023 at 12:09 PM.

  6. #6
    Registered User
    Join Date
    08-08-2023
    Location
    Utah
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Need to create a matrix that sums the number of paired observations.

    You are correct. My mistake was not properly copying the 2nd & 3rd formulas from your post above. The resulting paste was a duplicate of the first. I appreciate your pointing this out.

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Need to create a matrix that sums the number of paired observations.

    You are Welcome!

    Thanks for the feedback and rep . Glad to have helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 10-25-2019, 08:00 AM
  2. Replies: 3
    Last Post: 12-28-2015, 04:58 PM
  3. Solve a matrix (?) that sums up in both row and column?
    By SnartSemester in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2015, 12:05 PM
  4. [SOLVED] Copy formula for changing n number of observations
    By emielbrak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-16-2015, 12:02 PM
  5. Aggregating a large number of observations
    By ssotirov in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2015, 04:46 PM
  6. Filling a matrix from paired values in another sheet
    By guest2013 in forum Excel General
    Replies: 2
    Last Post: 08-17-2013, 12:02 PM
  7. Finding the Row Number with the First Paired Set
    By SDruley in forum Excel General
    Replies: 8
    Last Post: 11-27-2010, 04:40 AM

Tags for this Thread

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