squeezePars | R Documentation |
Squeeze the standard deviations of the models towards a common value using empirical Bayes moderation similar to the limma
package.
Information is borrowed over all accessions in the protLM
object in order to stabilize variances. These stabilized variances are called posterior variances. Options are provided to also perform the same squeezing over the random effects and for the penalty of the shrunken fixed effects.
squeezePars(protLM, par_squeeze = NULL, squeezeVar = TRUE, min_df = 1, robust_var = TRUE, printProgress = FALSE, shiny = FALSE, message_thetas = NULL, message_squeeze = NULL, message_update = NULL, ...)
protLM |
A |
par_squeeze |
Character vector indicating which model parameters need to be squeezed. When squeezing random effects, provide their names. Fixed effects are present in shrinkage groups, e.g. ridgeGroup.1. If you want them to be squeezed as well, provide the names of the shrinkage groups that need to be squeezed. The default |
squeezeVar |
A logical indicating whether the residual standard deviation of all models should be squeezed towards a common value. Defaults to |
min_df |
A numeric value indicating the minimal degrees of freedom that will be taken into account for calculating the prior degrees of freedom and prior variance. |
robust_var |
A logical indicating wheter the estimation of the prior degrees of freedom and the prior variance (needed for shrinkage) should be robustified against outlier variances. Defaults to |
printProgress |
A logical indicating whether the R should print a message before performing each preprocessing step. Defaults to |
shiny |
A logical indicating whether this function is being used by a Shiny app. Setting this to |
message_thetas |
Only used when |
message_squeeze |
Only used when |
message_update |
Only used when |
... |
Other arguments to be passed to the |
An updated protLM object with squeezed variances and/or squeezed parameters (or the input protLM
object if par_squeeze=NULL
and squeezeVar=FALSE
).
....
....
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.