1
$\begingroup$

Given a model that predicts the value of a non negative variable is it okay to replace the negative predictions with zero? Is there a different methodology of dealing with this problem? Are the any complications?

$\endgroup$
1

1 Answer 1

3
$\begingroup$

The best approach is to use a model that respects the non-negativity of your outcome variable.

For example, if you are modeling probabilities, use logistic regression, not a linear regression with the probability as the outcome. If you are modeling counts, use a Poisson or negative binomial regression. If your values are all strictly positive, try modeling the logarithm of the values or using a generalized linear model with a logarithmic link.

$\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.