1
$\begingroup$

I am doing logistic regression with 3 attributes. According to my data set I am expecting all coefficients to be positive. But it gives me both positive and negative coefficients. Is it possible to have all positive coefficients using logistic regression.

$\endgroup$
4
  • $\begingroup$ Are you expecting the coefficients on the log odds scale to be positive? $\endgroup$ Commented Feb 7, 2019 at 5:56
  • $\begingroup$ no, i want the logistic regression coefficients to be positive $\endgroup$
    – jenyK
    Commented Feb 7, 2019 at 6:17
  • $\begingroup$ Do you have any regression software that allows setting bounds on the parameters? If so, you could set all of the lower bounds at zero. $\endgroup$ Commented Feb 7, 2019 at 12:25
  • $\begingroup$ Can you post the output of your software? $\endgroup$ Commented Feb 7, 2019 at 13:34

1 Answer 1

3
$\begingroup$

Yes, it is possible to have all positive coefficients in logistic regression.

That doesn't say very much, if a covariable $x$ have a negative coefficient you can just replace that covariable by $-x$ and get a positive coefficient ... you would get a more useful answer if you told us about your real problem, your data, the context and research questions.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.