TomMaullin / BLMM

This repository contains all code for the BLMM toolbox.
19 stars 5 forks source link

Computational gain for the one factor model #40

Closed TomMaullin closed 2 years ago

TomMaullin commented 4 years ago

For the one factor model, large gains can be made by considering that Z'Z is block diagonal. Ideally it would be nice to account for this and implement speedier computation of D(I+Z'ZD)^(-1) for this use case.

TomMaullin commented 4 years ago

Places in the code this could be undertaken:

TomMaullin commented 4 years ago

Important: For this to work we must first ensure that the factor is given in increasing order (else pd.get_dummies in blmm_batch will give Z in a non-diagonal format.).

TomMaullin commented 4 years ago

Update: In PR #45 , the following use case has now been accounted for in the 3D code:

The case r=1 and nraneffs[0]>1 has not been considered.