Learn R Programming

SciencesPo (version 1.3.7)

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, group)

Arguments

y
The response variable.
group
The grouping factor.