Simple Linear Regression: Domain Error with 0.0

I think there’s no need to get personal here - I would tend to agree that it would be helpful for OP to consult some introductory statistics/econometrics textbooks to get a better understanding of the methodologies he’s using, but that’s not all that relevant to the concrete question at hand.

What I would humbly ask of you, @YummyPampers2, though is to be respectful of other people’s time and effort spent helping him. Practically this means reading Please read: make it easier to help you and following the advice given there, and in particular making sure that a question is backed up by an example which produces the actual error you’re seeing.

In this case four people have tried helping you with a problem that could not actually be reproduced from the code you posted, and only 24 hours and 17 posts into the thread did you reveal that actually you were running an entirely different regression on different data when you got the error you were asking about. In the event you were lucky that an econometrics professor from one of the leading departments in Europe was on hand to correctly guess what your problem is despite the inadequate MWE, but it’s easy to see how in a slightly different situation the wild goose chase could have gone on for quite some time.

2 Likes