regEngine: General purpose regression engine for the methods bayesglm,...

Description Usage Arguments Value Author(s)

View source: R/utilities.R

Description

General purpose regression engine for the methods bayesglm, glm and glmnet

Usage

1
2
3
4
5
6
7
regEngine(
  XYdata,
  method = "bayesglm",
  regIntercept = FALSE,
  lambda = NA,
  alpha = 1
)

Arguments

XYdata

matrix with X and Y columns. First column is named as y, other columns are X.

method

string among ("glm", "glmnet", "bayesglm").

regIntercept

Logical. Should intercept be included in the model?

lambda

for method "glmnet".

alpha

for "glmnet"

Value

list with elements: coef, se, lambda, fit (Coefficients, SE, lambda, if used, fit object.)

Author(s)

Abhirup


SSDALab/dnr documentation built on Dec. 28, 2020, 8:02 a.m.