For logistic regression in R can I get the list of significant factors and other details as we get in R ? In R when we run glm function we get all the details like coefficient and whether the independent variable is significant or not. Can we do similar thing in Orange?
Mar 5, 2022 442 views

## 1 answer to this question.

A statistical classification method that fits data to a logistic function is known as logistic regression. Orange adds features to the approach such as stepwise variable selection and handling of constant variables and singularities.

```import Orange
data = Orange.data.Table("titanic")
log_reg = Orange.classification.logreg.LogRegLearner(data)```

# compute classification accuracy

```correct = 0.0
for feature in titanic:

if log_reg(feature) == feature.getclass():

correct += 1

print "Classification accuracy:", correct / len(data)
print Orange.classification.logreg.dump(log_reg)```

Output

```Classification accuracy: 0.778282598819

class attribute = survived
class values = <no, yes>

Feature       beta  st. error     wald Z          P OR=exp(beta)

Intercept      -1.23       0.08     -15.15      -0.00
status=first       0.86       0.16       5.39       0.00 2.35e0
status=second      -0.16       0.18      -0.91       0.36 8.51e-1
status=third      -0.92       0.15      -6.12       0.00 3.98e-1
age=child       1.06       0.25       4.30       0.00 2.89e0
sex=female       2.42       0.14      17.04       0.00 1.12e1```

This is taken from the orange 2.7 documentation. Hope this helps to answer your question.

• 6,000 points

## What's the difference between the research of Machine learning and data mining?

Data mining research mainly revolves around gathering ...READ MORE

## Assumptions of Naïve Bayes and Logistic Regression

There are very few difference between Naive ...READ MORE

## difference between a cost function and the gradient descent equation in logistic regression?

Cost function is a way to evaluate ...READ MORE

## Logistic Regression Example

Logistic Regression often referred to as the ...READ MORE

## Example of Logistic regression with python code

Have a look at this: import csv import ...READ MORE

## How to calculate accuracy in a logistic regression model in python?

What accuracy score is considered a good ...READ MORE

## Can we use Normal Equation for Logistic Regression ?

Well not likely,  only one discriminative method ...READ MORE