Description Usage Arguments Value Author(s) See Also Examples
A design matrix is created, to be used for the analysis of data assumed to come from two normal distributions.
1 | designTwoGroups(n, m)
|
n |
The number of data values in the first group. |
m |
The number of data values in the second group. |
A matrix consisting of 1's and 0's, with two columns, and with the number of rows given by n+m.
Petter Mostad <mostad@chalmers.se>
designOneGroup
, designManyGroups
, designBalanced
, designFactorial
1 2 3 4 5 | data1 <- simulate(normal(3, log(2)), 7)
data2 <- simulate(normal(5, log(2)), 9)
design <- designTwoGroups(7,9)
posterior <- linearmodel(c(data1, data2), design)
credibilityinterval(marginal(posterior, 1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.