getShrinkageTargets: Get the specified samples to shrink towards instead of the...

View source: R/getShrinkageTargets.R

getShrinkageTargetsR Documentation

Get the specified samples to shrink towards instead of the global mean

Description

Get the specified samples to shrink towards instead of the global mean

Usage

getShrinkageTargets(obj, group)

Arguments

obj

Input matrix

group

Samples/colnames to use for targeted shrinkage

Value

A matrix composed of samples to shrink towards

Examples

dummy <- matrix(rnorm(1000), ncol=25)
dummy.sub <- getShrinkageTargets(dummy, group = c(1,5,8,10))


biobenkj/compartmentalizer documentation built on Oct. 13, 2023, 5:26 p.m.