Re-orders factors in decreasing order of magnitude

reorder_factors(MegaLMM_state, factor_order = NULL, drop_cor_threshold = 0.6)

Arguments

MegaLMM_state

output of sample_MegaLMM

factor_order

optional: vector or new orders for the factors. If Null, will be calculated

drop_cor_threshold

Factors correlated above this value (either F or U_F) will be dropped