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

View source: R/construct_confidence_set.R

get.sample.mean.rR Documentation

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)

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.

Value

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

Examples

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


argminCS documentation built on Aug. 8, 2025, 7:51 p.m.