Skip to content

Resolve matrix commute error in model using random effect and GRM at the same time.#372

Merged
MikeDMorgan merged 1 commit intomasterfrom
devel
Aug 28, 2025
Merged

Resolve matrix commute error in model using random effect and GRM at the same time.#372
MikeDMorgan merged 1 commit intomasterfrom
devel

Conversation

@MikeDMorgan
Copy link
Member

Using a random effect in the formula and a GRM resulted in a matrix multiplication error. The fix was to transpose the sub-matrix of Z subset by the columns of the relevant random effect level. This also revealed an error in the how the results were being collated with multiple random variables if one of them was the GRM/kinship matrix.

@MikeDMorgan MikeDMorgan merged commit f33f3bc into master Aug 28, 2025
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant