Allow for the addition of 95% CIs or standard errors around the pointwise estimates#988
Closed
lauredrs wants to merge 6 commits intoIndrajeetPatil:mainfrom
Closed
Allow for the addition of 95% CIs or standard errors around the pointwise estimates#988lauredrs wants to merge 6 commits intoIndrajeetPatil:mainfrom
lauredrs wants to merge 6 commits intoIndrajeetPatil:mainfrom
Conversation
…:" pour accéder à certaines fonctions internes au package. Pas de modification majeure de la fonction, permet de prendre en main notre fonction a modifier.
…nfiance sur le graphique.
…es intervalles de confiance sur les graphiques tracés avec la fonction ggdotplotstats.
Owner
|
Hi, thanks a lot for trying to implement this!! I am going to close this in favour of: https://github.com/IndrajeetPatil/ggstatsplot/pull/996/files The difference is that I am using Please have a look at that PR and let me know if you see any issue 😸 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With @sidocleux , in our first modifications, the confidence intervals were not visible on the graph. This may be due to the high concentration of data around the mean, which reduces the standard error and therefore the width of the confidence intervals.
We therefore chose to calculate the confidence intervals manually. We used the mean, the standard error and a normal approximation (qnorm()) to determine the lower and upper bounds of the confidence interval. Then, to display them on the graph, we used geom_errorbarh() (which displays the horizontal error bars in red). Other solutions, such as ggdist with stat_pointinterval() or stat_eye(), could have been used, but they require more configuration (choice of distribution, additional parameters).
We have also encountered a problem since version 3.4.0 of ggplot2: the size argument should no longer be used to define the thickness of lines (geom_errorbarh(), geom_line(), etc.). Instead, we use linewidth.
Here is the graph we obtained :
