Description Usage Arguments Details Examples
View source: R/replicate_util.R
Finds the MLE for a list of replicate frequency count tables drawn from the same population using the full likelihood.
1 2 3 4 | direct_optimise_replicates(fct_list, penalty = NULL, lambda = NULL,
multiplier = 10, c_seq_len = 100, starts = NULL,
alpha_min = 1e-10, delta_min = 1e-10, alpha_max = 1e+05,
delta_max = 1e+05, search_scheme = "grid")
|
fct_list |
a list of frequency count tables, see
|
penalty |
method of penalizing/regularizing the maximum likelihood solution. |
lambda |
parameter for the h1 penalization method. |
multiplier |
Richness values from the observed richness to |
c_seq_len |
Number of candidate C values we will maximize over. |
starts |
A dataframe or matrix of optimization starts. See details. |
alpha_min |
box constraints for optimization over |
delta_min |
box constraints for optimization over |
alpha_max |
box constraints for optimization over |
delta_max |
box constraints for optimization over |
search_scheme |
method for iterating over candidate C values. |
direct_optimise_replicates()
searches over candidate C
values in a grid spanning from the maximum observed richness (c) to
multiplier
*c. At each C value we search over alpha
,
delta
using a gradient search (optim
with method =
"L-BFGS-B"). We use multiple starts (given in the matrix starts
).
in optimizing as we have no guaruntee of convexity in this problem.
1 2 | list_of_fct <- rre::nb_fct_simulation(1000, 0.1, 0.1, 2) # two replicates
direct_optimise_replicates(list_of_fct)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.