Description Usage Arguments Value
View source: R/fit_feature_parameters.R
Find feature parameters for elements of X with a fixed set of hyperparameters
1 2 3 4 |
X |
data matrix |
experimental_design |
a vector that specifies which samples belong to the same condition. |
hyper_params |
a list with 5 elements ('eta', 'nu', 'mu0', 'sigma20', 'rho', and 'zeta'). Alternatively the 'hyper_params' can be specified individually. |
mu0 |
the global mean around which the row means are drawn |
sigma20 |
the global variance specifying the spread of means around 'mu0'. |
nu |
degrees of freedom for the the global variance prior. |
eta |
scale of the global variance prior. |
rho |
vector specifying the intensity where the chance of a dropout is
50/50. Length is either one or |
zeta |
vector specifying the scale of the dropout curve.
Length is either one or |
mup |
Optional matrix that fixes the mean for each row and condition. Default 'NULL' |
sigma2p |
Optional vector that fixes the variance for each row. Default 'NULL' |
sigma2mup |
Optional matrix that fixes the uncertainty of the mean for each row and condition. Default 'NULL'. |
max_iter |
the maximum number of iterations. Default: 10 |
epsilon |
the error under which the result is considered converged. Default: 0.001 |
verbose |
boolean that indicates if verbose output is printed to the console. |
list with three elements
a matrix with size nrow(X) * unique(experimental_design)
with the means for each feature
a numeric vector with the variance for each feature
a matrix with size nrow(X) * unique(experimental_design)
with the uncertainty for each 'mup'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.