Learn R Programming

lestat (version 1.9)

designOneGroup: 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.

See Also

designTwoGroups, designManyGroups, designBalanced, designFactorial

Examples

Run this code
# NOT RUN {
data <- simulate(normal(4, log(1.3)), 9)
design <- designOneGroup(9)
posterior <- linearmodel(data, design)
credibilityinterval(marginal(posterior, 1))
# }

Run the code above in your browser using DataLab