View source: R/estimate_parameters.R
estimate_parameters | R Documentation |
This function fits a model to HTS microbiome data that allows for estimation of detection efficiency effects as well as modeling of spurious read sources (e.g., contamination).
estimate_parameters(
W,
X,
Z,
Z_tilde = NULL,
Z_tilde_gamma_cols,
gammas,
gammas_fixed_indices,
P,
P_fixed_indices,
B,
B_fixed_indices,
X_tilde,
P_tilde,
P_tilde_fixed_indices,
gamma_tilde,
gamma_tilde_fixed_indices,
alpha_tilde = NULL,
Z_tilde_list = NULL,
barrier_t = 1,
barrier_scale = 10,
max_barrier = 1e+12,
initial_conv_tol = 1000,
final_conv_tol = 0.1,
constraint_tolerance = 1e-10,
hessian_regularization = 0.01,
criterion = "Poisson",
profile_P = TRUE,
barrier_maxit = 500,
profiling_maxit = 25,
wts = NULL,
verbose = FALSE,
bootstrap_failure_cutoff = NULL,
tinker_zeroes = 0.1,
return_variance = FALSE
)
W |
An |
X |
The sample efficiency design – an |
Z |
The sample-specimen design – an |
Z_tilde |
The spurious read design – an |
Z_tilde_gamma_cols |
A numeric vector containing the columns of Z_tilde which should be multiplied by exp(gamma). |
gammas |
A numeric vector of length n of starting values for read intensity parameter gamma |
gammas_fixed_indices |
A logical vector of length n whose |
P |
A |
P_fixed_indices |
P_fixed_indices A |
B |
A |
B_fixed_indices |
A |
X_tilde |
A |
P_tilde |
A |
P_tilde_fixed_indices |
A |
gamma_tilde |
A numeric vector of length |
gamma_tilde_fixed_indices |
A logical vector of length |
alpha_tilde |
A numeric vector containing starting values of length |
Z_tilde_list |
A list of length |
barrier_t |
Starting value of reciprocal barrier penalty coef. Defaults to 1. |
barrier_scale |
Increments for value of barrier penalty. Defaults to 10. |
max_barrier |
Maximum value of barrier_t. Defaults to 1e12. |
constraint_tolerance |
The tolerance for the augmented Lagrangian algorithm. Final estimates of P are relative abundances to within |
hessian_regularization |
The second step of optimization involves a quadratic approximation to the likelihood, for which we use a modified Taylor series for stability. This is the constant that dampens the second term. Defaults to 0.01. |
criterion |
Should the algorithm return the Poisson maximum likelihood estimates or the reweighted Poisson maximum likelihood estimates? Options are "Poisson" or "reweighted_Poisson". |
profile_P |
Defaults to TRUE Run profiling step after barrier algorithm has run? If TRUE, this step is performed, possibly setting some estimated relative abundances in P equal to zero. If FALSE, profiling step is skipped and back-transformed log-ratio parameter estimated via barrier algorithm is returned for P. |
barrier_maxit |
The maximum number of iterations for the barrier method |
profiling_maxit |
Maximum number of iterations to run profiling step in P for (default is 25). |
wts |
Weights for reweighting the likelihood contributions. This is usually done to improve efficiency. Defaults to NULL. We compute the weights for you even if you choose |
verbose |
Do you want to know what I'm doing? Defaults to FALSE. |
bootstrap_failure_cutoff |
Defaults to NULL. |
tinker_zeroes |
Because the barrier method can only be applied to relative abundances in the interior of the simplex, tinker_zeroes divided by the number of taxa is added to all relative abundances to be estimated before the barrier method is applied. Default 0.1. |
return_variance |
Defaults to FALSE. |
A list containing estimated parameter values, along with the given inputs
David Clausen
Amy Willis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.