getShrinkageTargets {compartmap} | R Documentation |
Get the specified samples to shrink towards instead of the global mean
getShrinkageTargets(obj, group)
obj |
Input matrix |
group |
Samples/colnames to use for targeted shrinkage |
A matrix composed of samples to shrink towards
dummy <- matrix(rnorm(1000), ncol=25) dummy.sub <- getShrinkageTargets(dummy, group = c(1,5,8,10))