Skip to contents

Computes the inverse-logit transformation while clipping its output away from zero and one.

Usage

sigmoid(eta)

Arguments

eta

Numeric vector or matrix of linear predictors.

Value

eta transformed to probabilities in [1e-6, 1 - 1e-6].