Description Usage Arguments Value Author(s) Examples
Given two univariate distributions, an attempt is made to create the (approximate) difference between these.
1 | difference(object1, object2)
|
object1 |
A univariate normal or tdistribution. |
object2 |
A univariate normal or tdistribution. |
A univariate normal or tdistribution, as appropriate.
Petter Mostad <mostad@chalmers.se>
1 2 3 4 5 6 | data1 <- simulate(normal(8, log(1.5)), 6)
posterior1 <- marginal(linearmodel(data1, designOneGroup(6)), 1)
data2 <- simulate(normal(10, log(2.8)), 7)
posterior2 <- marginal(linearmodel(data2, designOneGroup(7)), 1)
posterior <- difference(posterior1, posterior2)
credibilityinterval(posterior)
|
Loading required package: MASS
WARNING: The resulting distribution is an approximation.
[1] -1.672186 3.285259
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.