Shrinkage: Calculate reproducing kernels for Stein shrinkage estimate

Description Usage Arguments Value Author(s) See Also Examples

Description

Return a matrix evaluating reproducing kernels for the discrete shrinkage towards zero or the mean estimate

Usage

1
2
shrink0(x, y=x)
shrink1(x, y=x)

Arguments

x

a vector of numerical values or factor indicating different levels.

y

a vector of numerical values or factor indicating different levels. Default is x.

Value

a matrix with the numbers of row and column equal to the length of x and y respectively. The [i, j] element is the reproducing kernel evaluated at the ith element of x and jth element of y.

shink0 shrinks towards zero, and shrink1 shinks towards the mean.

Author(s)

Chunlei Ke chunlei\_ke@pstat.ucsb.edu and Yuedong Wang yuedong@pstat.ucsb.edu

See Also

shrink0,ssr

Examples

1
2
3
4
5
## Not run: 
x<-rep(1:10,2)
shrink1(x)

## End(Not run)

catherinewang1/assist documentation built on June 16, 2019, 1:36 p.m.