Learn R Programming

emcAdr (version 1.2)

histogramToDitribution: Convert the histogram returned by the DistributionApproximation function, to a real number distribution (that can be used in a test for example)

Description

Convert the histogram returned by the DistributionApproximation function, to a real number distribution (that can be used in a test for example)

Usage

histogramToDitribution(vec)

Value

A vector containing sampled risk during the MCMC algorithm

Arguments

vec

: distribution returned by the DistributionAproximationFunction

Examples

Run this code
# \donttest{
data("ATC_Tree_UpperBound_2024")
data("FAERS_myopathy")

 DistributionApproximationResults = DistributionApproximation(epochs = 10,
            ATCtree = ATC_Tree_UpperBound_2024, observations = FAERS_myopathy)
  histogramToDitribution(DistributionApproximationResults$ScoreDistribution)
# }

Run the code above in your browser using DataLab