p_value_genetic_results {emcAdr} | R Documentation |
Used to add the p_value to each cocktail of an output of the genetic algorithm
Description
Used to add the p_value to each cocktail of an output of the genetic algorithm
Usage
p_value_genetic_results(
distribution_outputs,
genetic_results,
filtred_distribution = FALSE
)
Arguments
distribution_outputs |
A list of distribution of cocktails of different sizes in order to compute the p_value for multiple cocktail sizes |
genetic_results |
outputs of the genetic algorithm |
filtred_distribution |
Does the p-values have to be computed using filtered distribution or normal distribution (filtered distribution by default) |
Value
A real valued number vector representing the p-value of the inputed genetic algorithm results (genetic_results) computed on the distribution_outputs List.
Examples
data("ATC_Tree_UpperBound_2024")
data("FAERS_myopathy")
DistributionApproximationResults_size2 = DistributionApproximation(epochs = 10,
ATCtree = ATC_Tree_UpperBound_2024, observations = FAERS_myopathy, Smax = 2)
DistributionApproximationResults_size3 = DistributionApproximation(epochs = 10,
ATCtree = ATC_Tree_UpperBound_2024, observations = FAERS_myopathy, Smax = 3)
score_distribution_list = list(DistributionApproximationResults_size2,
DistributionApproximationResults_size3)
genetic_results = GeneticAlgorithm(epochs = 10, nbIndividuals = 20,
ATCtree = ATC_Tree_UpperBound_2024,
observations = FAERS_myopathy)
p_value_genetic_results(score_distribution_list, genetic_results)
[Package emcAdr version 1.2 Index]