Description Details Author(s) References Examples
The package contains a number of simple functions which can be combined to implement simple Bayesian computations.
Package: | lestat |
Type: | Package |
Version: | 1.6 |
Date: | 2011-12-15 |
License: | GPL-2 |
LazyLoad: | yes |
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 <mostad@chalmers.se>
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.