Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Couldn't use (model.resid) #1

Open
HebahAlshamlan opened this issue Jul 18, 2020 · 0 comments
Open

[bug] Couldn't use (model.resid) #1

HebahAlshamlan opened this issue Jul 18, 2020 · 0 comments

Comments

@HebahAlshamlan
Copy link

Hi, This is really a great job! thank you i learn a lot from it and from the references you mention.
Anyway, when I try to run any cell contains model.resid
I get this error

AttributeError                            Traceback (most recent call last)
<ipython-input-137-c4481da1ff48> in <module>()
     25     print('If the returned Anderson Draling statistic is larger than the critical value, then for the 5% significance level, the null hypothesis that the data come from the Normal distribution should be rejected. ')
     26 
---> 27 normality_of_residuals_test(lm)

<ipython-input-137-c4481da1ff48> in normality_of_residuals_test(model)
     10     '''
     11 
---> 12     sm.ProbPlot(model.resid).qqplot(line='s');
     13     plt.title('Q-Q plot');
     14 

AttributeError: 'LinearRegression' object has no attribute 'resid'
@HebahAlshamlan HebahAlshamlan changed the title #bug Couldn't use (model.resid) [bug] Couldn't use (model.resid) Jul 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant