designTwoGroups: Create a Design Matrix for Two Groups of Observations

Description Usage Arguments Value Author(s) See Also Examples

Description

A design matrix is created, to be used for the analysis of data assumed to come from two normal distributions.

Usage

1

Arguments

n

The number of data values in the first group.

m

The number of data values in the second group.

Value

A matrix consisting of 1's and 0's, with two columns, and with the number of rows given by n+m.

Author(s)

Petter Mostad <mostad@chalmers.se>

See Also

designOneGroup, designManyGroups, designBalanced, designFactorial

Examples

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))

lestat documentation built on May 2, 2019, 2:09 p.m.