getShrinkageTargets {compartmap} | R 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))

[Package compartmap version 1.10.0 Index]