CompareSim | R Documentation |
This function performs several simulations for trees that have a complete taxonomic identification and compare the results with the original species.
CompareSim( Param = NULL, priors = NULL, D2fill, DAsso = NULL, pc2fill = NULL, pcFamilyDet = NULL, pcGenusDet = NULL, NbSim = 1, Results_Simulations = FALSE, parallel = FALSE )
Param |
a datatable with the parameters for each scenario :
|
priors |
a list of datasets containing the priors for each scenario. These datasets must have been prepared using the function PrepPrior. (Default is NULL: no prior information is used). |
D2fill |
a dataset to fill, this dataset must have been prepared using the function PrepData. |
DAsso |
a list of datasets of observation used for each scenario, these datasets must have been prepared using the function PrepData (Default is NULL: the dataset Data2fill is used to built the association matrix). |
pc2fill |
the percentage of data (dataFill) to fill. |
pcFamilyDet |
the percentage of data determined at the family level (from the subset of dataFill to fill). We recommend using a percentage equivalent than in the data to gapfill. |
pcGenusDet |
the percentage of data determined at the genus level (from the subset of dataFill to fill, the rest isn't determined at all). We recommend using a percentage equivalent than in the data to gapfill. |
NbSim |
the number of simulations. |
Results_Simulations |
a boolean specifying if the user wants to keep the results of the simulations. |
parallel |
a boolean specifying if the user wants to speed up the loop by using parallelization. |
This function performs the following steps for each scenario:
Get the data,
Split between train and test set and remove taxonomic information from the test set (see SampleTestDataset function),
Perform simulations (see SimFullCom function),
Compare simulations with original taxonomic information, with the function CompareTaxo,
Create and return an object of the class VernaBotaSims.
This function returns an object of the class VernaBotaSims. The functions summary and plot can be used on this object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.