View source: R/initialization.R
initialize_esvd | R Documentation |
For each gene, this function estimates two ridge-regression penalized GLMs (using the
Poisson model) – one using the case_control_variable
and one without, and
both sets of coefficients as well as the p-value (according to a deviance test) is returned.
This p-value is on the log10-scale.
initialize_esvd(
dat,
covariates,
metadata_individual,
bool_intercept = F,
case_control_variable = NULL,
k = 30,
lambda = 0.01,
library_size_variable = "Log_UMI",
offset_variables = "Log_UMI",
metadata_case_control = NULL,
verbose = 0
)
dat |
Dataset (either |
covariates |
|
metadata_individual |
|
bool_intercept |
Boolean on whether or not an intercept will be included as a covariate. |
case_control_variable |
A string of the column name of |
k |
Number of latent dimensions. |
lambda |
Penalty of the |
library_size_variable |
A string of the variable name (which must be in |
offset_variables |
A vector of strings depicting which column names in |
metadata_case_control |
(Optional) vector of length |
verbose |
Integer |
eSVD
object with elements dat
, covariates
,
initial_Reg
and param
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.