designTwoGroups {lestat} | R Documentation |
A design matrix is created, to be used for the analysis of data assumed to come from two normal distributions.
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
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))