Learn R Programming

informativeSCI (version 1.0.3)

sigmaManyToOne: Calculation of the Covariance Matrix for a Many-to-one-Comparison

Description

The function calculates the covariance matrix for many-to-one-comparisons. The covariance matrix is calculated for the point estimators, each defined by the difference between the empirical mean of one of the experimental groups and the empirical mean of the control group.

Usage

sigmaManyToOne(sampleSizes, sampleSizeControl, varObs, checkInput = TRUE)

Value

Returns covariance matrix.

Arguments

sampleSizes

A numeric vector indicating the sample size of each non-control group.

sampleSizeControl

A numeric indicating the sample size of the control group.

varObs

A positive numeric indicating the variance of the individual observations.

checkInput

A boolean specifying whether the entered values should be checked.

Examples

Run this code
sigmaManyToOne(sampleSizes=c(89,95), sampleSizeControl=77,
 varObs=10)

Run the code above in your browser using DataLab