lin_associations | R Documentation |
Calculates the linear association between a matrix of features A and a vector y.
lin_associations( X, Y, W = NULL, n.min = 4, shrinkage = T, alpha = 0, MHC_direction = NULL )
X |
n x m numerical matrix of features (missing values are allowed). |
Y |
n x p numerical matrix of responses (missing values are allowed) |
W |
n x p numerical matrix of confounders (missing values are not allowed). |
n.min |
Numeric value controlling the minimum degrees of freedom required for p-values. |
shrinkage |
Boolean to control whether adaptive shrinkage should be applied. |
alpha |
Numeric value controling the alpha value for adaptive shrinkage. |
MHC_direction |
String ("x" or "y") indicating which variable is independent, defaults to matrix with more columns. |
A list with components:
Vector of degrees of freedom for each feature.
Vector of uncorrected beta estimates controlled for W.
Vector of corrected beta estimates controlled for W.
Vector of standard errors of the beta estimates.
Vector of p-values (without adaptive shrinkage).
Vector of q-values (without adaptive shrinkage).
A table with the following columns (values calculated with adaptive shrinkage):
betahat: estimated linear coefficient controlled for W.
sebetahat: standard error for the estimate of beta.
NegativeProb: posterior probabilities that beta is negative.
PositiveProb: posterior probabilities that beta is positive
lfsr: local and global FSR values.
svalue: s-values.
lfdr: local and global FDR values.
qvalue: q-values for the effect size estimates.
PosteriorMean: moderated effect size estimates.
PosteriorSD: standard deviations of moderated effect size estimates.
dep.var: dependent variables (column names of Y).
ind.var: independent variables (column names of X).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.