qq_plot_output {emcAdr} | R Documentation |
Make a Quantile-Quantile diagram from the output of the MCMC algorithm (DistributionAproximation) and the algorithm that exhaustively calculates the distribution
Description
Make a Quantile-Quantile diagram from the output of the MCMC algorithm (DistributionAproximation) and the algorithm that exhaustively calculates the distribution
Usage
qq_plot_output(estimated, true, filtered = FALSE, color = "steelblue")
Arguments
estimated |
Outputed object of DistributionApproximation function |
true |
Outputed object of either DistributionApproximation function or True distribution computation function |
filtered |
Make use of the classic distributuion estimation or of the filtred one (number of patient taking the cocktail > beta) |
color |
The color of the dashed line of the qq-plot |
Value
no returned value, should plot the quantile-quantile plot of the estimated distribution (estimated) vs the true distribution (true).
Examples
data("ATC_Tree_UpperBound_2024")
data("FAERS_myopathy")
estimated_score_distribution = DistributionApproximation(epochs = 10,
ATCtree = ATC_Tree_UpperBound_2024,
observations = FAERS_myopathy[1:100,], Smax =2)
true_score_distribution = trueDistributionSizeTwoCocktail(ATCtree = ATC_Tree_UpperBound_2024,
observations = FAERS_myopathy[1:100,], beta = 4)
qq_plot_output(estimated = estimated_score_distribution,
true = true_score_distribution)
[Package emcAdr version 1.2 Index]