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

ENH: plot prediction curve over scatter in GLMGamResults.plot_partial #8881

Merged
merged 2 commits into from Jun 9, 2023

Conversation

aglebov
Copy link
Contributor

@aglebov aglebov commented May 14, 2023

Currently, when called with cpr=True, GLMGamResults.plot_partial will plot the scatter of residuals over the fitted curve:
image

The change plots the curve over the scatter and reduces the marker size:
image

@@ -319,7 +319,7 @@ def plot_partial(self, smooth_index, plot_se=True, cpr=False,
If plot_se is true, then the confidence interval for the linear
prediction will be added to the plot.
cpr : bool
If cpr (component plus residual) is true, the a scatter plot of
If cpr (component plus residual) is true, them a scatter plot of
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ironic:)

@josef-pkt
Copy link
Member

Thanks for the PR,
LGTM except replacing one typo with another typo

amend and force push would get the cleanest commit

@aglebov
Copy link
Contributor Author

aglebov commented Jun 1, 2023

Thanks for the PR, LGTM except replacing one typo with another typo

I've fixed the typo. Do you want to merge this change?

@josef-pkt
Copy link
Member

Thanks for the pull request.
merging

@josef-pkt josef-pkt merged commit 98971b4 into statsmodels:main Jun 9, 2023
3 checks passed
@bashtage bashtage added this to the 0.14 milestone Oct 27, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants