gfunc function

Convert response value to raw prediction in GLM

Convert response value to raw prediction in GLM

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

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

Returns

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

  • Maintainer: Zhu Wang
  • License: GPL-2
  • Last published: 2024-06-27