GLM_Model {pomodoro} | R Documentation |
Generalized Linear Model
Description
Generalized Linear Model
Usage
GLM_Model(Data, xvar, yvar)
Arguments
Data |
The name of the Dataset. |
xvar |
X variables. |
yvar |
Y variable. |
Details
Let y be a vector of response variable of accessing credit for each applicant
, such that
if the applicant-
has access to credit, and zero otherwise. Furthermore, let
let
, where
and
characteristics of the applicants.
The log-odds can be define as:
is the intercept,
is
a
vector of coefficients and
is the
row of x.
Value
The output from GLM_Model
.
Examples
yvar <- c("multi.level")
sample_data <- sample_data[c(1:750),]
xvar <- c("sex", "married", "age", "havejob", "educ", "political.afl",
"rural", "region", "fin.intermdiaries", "fin.knowldge", "income")
BchMk.GLM <- GLM_Model(sample_data, c(xvar, "networth"), yvar )
BchMk.GLM$finalModel
BchMk.GLM$Roc$auc
[Package pomodoro version 3.8.0 Index]