
ULM / MLM activity scores (decoupler-style)
rs_lm_activity.Rd
Fits a univariate (ULM) or multivariate (MLM) linear model per observation
of the feature weights of each set against the observed values, and returns
the t-value or the coefficient as the activity score. Observations are the
columns of
mat.
Arguments
- mat
Numerical matrix. Features x observations. Must not contain non-finite values.
- gs_list
List. One element per set, each a list with
idx(integer, 0-indexed feature positions) and optionallyweight(numeric, aligned withidx; absent means weight 1).- lm_params
List. With
method("ulm"or"mlm"),stat("t"or"coef") andp_values(boolean).