Hi

In "R" Language, the Logistic Regression function "glm"  generates the "P
Value".

In Mahout's "TrainLogistic" - the logistic regression function provides
only the coefficients of the variable .

Is there anyway to get the P value in Mahout as  "R's glm" provides P Value.

*R's glm Example Input*
** mylogit <- glm(IsAlert ~ P1 + P2, data=mysample, family="binomial")
 summary(mylogit)
 *
**R's glm Output*

Coefficients:
                   Estimate     Std. Error      z value       Pr(>|z|) (*P
values*)
(Intercept)    9.597e-01    1.703e-01      5.634         1.76e-08 ***
P1              -1.531e-02    7.232e-04     -21.167       < 2e-16 ***
P2               7.353e-04    1.390e-03      0.529         0.597

*Mahout, TrainLogistic Example Input:

*$MAHOUT_HOME/bin/mahout trainlogistic --input mysample.csv \
--output ./model \
--target y --categories 2 \
--predictors P1 P2 --types numeric \
--features 2 --passes 100 --rate 50

*Mahout OUTPUT*
y ~ -0.157*Intercept Term + -0.678*P1 + -0.416*P2
Intercept Term -0.15655
P1 -0.67841
P2 -0.41587.

But I need to get P Value,

Thanks in advance

Thanks and Regards
Prabu

Reply via email to