The package contains a number of simple functions which can be combined to implement simple Bayesian computations.
With this package, functions can be used to create objects representing probability distributions of many different types. These distributions can then be transformed and combined in different ways, representing statistical modelling. The result is an object-oriented way to do Bayesian computation with R.
Petter Mostad <firstname.lastname@example.org>
Please see more information at www.math.chalmers.se/~mostad/
1 2 3 4 5
prior <- normalexpgamma() #Generate a two-parameter flat prior full <- linearpredict(prior, rep(1, 7)) #Extend with normal distribution data <- runif(7) #Generate data posterior <- conditional(full, 1:7, data) #Condition on parameters credibilityinterval(marginal(posterior, 1)) #Investigate posterior
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.