# How to get the p-Values from the logistic regression in weka Classic List Threaded 3 messages Open this post in threaded view
|

## How to get the p-Values from the logistic regression in weka

 Hi everyone, the question is whether it is possible to get the p-Value(s) of the logistic regression implemented in weka (weka.classifiers.functions.Logistic). I searched for this topic but I did not find a solution. What I want to do is this (example using R): -------------------------------------------------------------------------------- glm(formula = "class ~ attribute1", family = binomial("logit"), data = d) Deviance Residuals:     Min     1Q     Median     3Q     Max -1.24744     -1.20809     0.06943     1.12129     1.35639 Coefficients:                         Estimate     Std. Error     z value         Pr(>|z|) (Intercept)         0.171438     0.786038      0.218            0.827 attribute1     -0.007521      0.020550     -0.366         0.714 (Dispersion parameter for binomial family taken to be 1)     Null deviance: 13.863 on 9 degrees of freedom     Residual deviance: 13.726 on 8 degrees of freedom AIC: 17.726 Number of Fisher Scoring iterations: 4 -------------------------------------------------------------------------------- In this example I built a generalized linear model with the „logit“ as the link function. I also used this model as a classifier and found out that the AUC of the glm in R is exactly the same as the AUC of the classifier Logistic in weka. So I think, that the implementation is very similar. I am interested in the p-Value from the logistic regression of one attribute, using just this attribute and the class-attribute. The value is marked orange. I want to use the p-Value in a significance test to filter attributes. The z-Value would also be interesting. Until now I used the glm of R, as it is displayed in the example. The problem is that, there are a lot of attribute to analyze and the function in R is not that fast. Furthermore the R-script I implemented is not stable on our HPC anymore (2 months ago I had no problem with this script). And another motivation is that I would like to use just java for all my programs. So I would be glad to get an answer to my topic "How to get the p-Values from the logistic regression in weka"! And I would be very happy to get a short explanation instead of just the formula (if possible). With kind regards Steffen Albrecht (from Germany) _______________________________________________ Wekalist mailing list Send posts to: [hidden email] List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalistList etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html