designOneGroup {lestat}R Documentation

Create a Design Matrix for One Group of Observations

Description

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

Usage

designOneGroup(n)

Arguments

n

The number of data values.

Value

A matrix consisting only of 1's, with one column and with the number of rows given by n.

Author(s)

Petter Mostad <mostad@chalmers.se>

See Also

designTwoGroups, designManyGroups, designBalanced, designFactorial

Examples

data <- simulate(normal(4, log(1.3)), 9)
design <- designOneGroup(9)
posterior <- linearmodel(data, design)
credibilityinterval(marginal(posterior, 1))

[Package lestat version 1.9 Index]