Error in, y, offset = offset, singular.ok = singular.ok, ...) : NA/NaN/Inf in 'x'

Getting this error while trying to build linear regression model. But i could see all variables are numeric. As i converted categorical into dummy variables few has 0's in it. When i don't apply log(sales) then it works fine.
Facing issue only when i use log(sales). Can someone help me in this please.

Because you can log(0), so you have to deal with any sales of 0

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.