Learn R Programming

mpath (version 0.4-2.26)

gfunc: Convert response value to raw prediction in GLM

Description

Compute response value to raw prediction such as linear predictor in GLM

Usage

gfunc(mu, family, epsbino)

Value

linear predictor f=x'b for predictor x and coefficient b if the model is linear

Arguments

mu

vector of numbers as response value in GLM, for instance, probability estimation if family=2

family

integer from 1-4, corresponding to "gaussian", "binomial", "poisson", "negbin", respectively

epsbino

a small positive value for family=2 to avoid numeric unstability