Rdocumentation
powered by
Learn R Programming
SciencesPo (version 1.3.8)
james.stein: James-Stein shrunken estimates
Description
Computes James-Stein shrunken estimates of cell means given a response variable (which may be binary) and a grouping indicator.
Usage
james.stein(y, k)
Arguments
y
The response variable.
k
The grouping factor.