twoGroupDesignMatrix: Design Matrix for Two-Group Mean Estimation

Description Usage Arguments Details Value

View source: R/twoGroupDesignMatrix.R

Description

This function returns the design matrix for two-group mean estimation. The first column contains indicators for membership in the first group, and the second column contains indicators for memebership in the second group.

Usage

1
twoGroupDesignMatrix(group.one.indices, group.two.indices)

Arguments

group.one.indices

indices of observations in group one.

group.two.indices

indices of observations in group two.

Details

Example

1
2
3
4
5
6
7
8
D <- twoGroupDesignMatrix(1:2, 3:5)
# print(D) displays the following:
     [,1] [,2]
[1,]    1    0
[2,]    1    0
[3,]    0    1
[4,]    0    1
[5,]    0    1

Value

Returns a design matrix of size n by 2, where n is the sample size.


jointMeanCov documentation built on May 6, 2019, 1:09 a.m.