Learn R Programming

argminCS (version 1.1.0)

get.sample.mean.r: Compute sample mean differences for hypothesis testing

Description

Computes the vector of differences between the sample mean at the reference index and the remaining dimensions.

Usage

get.sample.mean.r(sample.mean, r)

Value

A vector of length p - 1 giving the differences: sample.mean[r] - sample.mean[-r].

Arguments

sample.mean

A vector of length p containing the sample means of each dimension.

r

An integer between 1 and p, indicating the reference dimension.

Examples

Run this code
sample.mean <- 1:5
get.sample.mean.r(sample.mean, r = 3)

Run the code above in your browser using DataLab