View source: R/run_daisie_ml.R
run_daisie_ml | R Documentation |
Run DAISIE analysis
run_daisie_ml(
daisie_data,
data_name,
model,
array_index,
cond,
methode = "lsodes",
optimmethod = "subplex",
results_dir = NULL,
low_rates = FALSE,
rep_index = "NULL",
res = 100,
par_upper_bound = Inf,
test = FALSE
)
daisie_data |
A list, conforming to the |
data_name |
String. Will be used for the name of the created output folder. |
model |
A string with model that should run. Models are as follows:
|
array_index |
A single numeric with the array index. It is used for naming the output file. |
cond |
An integer specifying conditioning, as described in
|
methode |
Method of the ODE-solver. Supported Boost |
optimmethod |
Method used in likelihood optimization. Default is
|
results_dir |
A string with the path to the directory where results
are to be stored or can be found. For example, if the data in question
is (to be) stored in |
low_rates |
Boolean determining whether the random sampling of initial parameter estimates should be sampled from a broad range (FALSE) or from a restricted range where the initial rates a ensured to be smaller (TRUE). The latter helps when using large datasets that may fail the initial likelihood computation with higher rates that could be sampled from the broad range of rates. |
rep_index |
A string which by default is "NULL" (it is a string and not a true NULL due to being passed from the command line), or can be a string of a numeric which is used to detect whether multiple data set from the same data source is being run. This is the case, for example, when fitting a DAISIE model to a posterior distribution of data. |
res |
A numeric determining the resolution of the likelihood calculations, it sets the limit for the maximum number of species for which a probability must be computed, which must be larger than the size of the largest clade. |
par_upper_bound |
A numeric defining the upper limit of the integration of a parameter when fitting the relaxed-rate DAISIE model. If the DAISIE model being applied is not the relaxed-rate model, this parameter can be ignored and left as its default as it does not influence the model. |
test |
A boolean, defaults to |
Nothing. Writes DAISIE
analysis results to a .rds
file. This
file is stored in file_path
. The directory in of file_path
is created
if it doesn't exist.
Pedro Santos Neves, Joshua W. Lambert, Luis Valente
## Not run:
data(Galapagos_datalist, package = "DAISIE")
run_daisie_ml(
daisie_data = Galapagos_datalist,
data_name = "Galapagos_datalist",
model = "cr_dd",
array_index = 1,
cond = 1
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.