gfunc {mpath}R Documentation

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)

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

Value

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


[Package mpath version 0.4-2.25 Index]