MLM_Model {pomodoro} | R Documentation |
Multinominal Logistic Model
Description
Multinominal Logistic Model
Usage
MLM_Model(Data, xvar, yvar)
Arguments
Data |
The name of the Dataset. |
xvar |
X variables. |
yvar |
Y variable. |
Details
Multi-nominal model is the generalized form of generalized logistic model and can be define as
where presents the class labels ("1-of-h") on the basis of an input vector
, in our case
is loan types ("Formal Loan", "Informal Loan", "Both Loan", and "No Loan"). Furthermore,
if the weight w
of
corresponds to belong a class and
otherwise.
For
and
the weight vectors w^i corresponds to class
.
We set and the parameters to be learned are the weight vectors w^i
for
. And the class probabilities must satisfy
Value
The output from MLM_Model
.
Examples
yvar <- c("Loan.Type")
sample_data <- sample_data[c(1:750),]
xvar <- c("sex", "married", "age", "havejob", "educ", "political.afl",
"rural", "region", "fin.intermdiaries", "fin.knowldge", "income")
BchMk.MLM <- MLM_Model(sample_data, c(xvar, "networth"), yvar )
BchMk.MLM$finalModel
BchMk.MLM$Roc$auc
[Package pomodoro version 3.8.0 Index]