And here 10 would go in the first bin.īy default, R plots histograms with right closed, left open intervals (see the right=TRUE option for this function) SAS defaults to left-closed, right open (see rtinclude option on that page). The second example are right closed, left open intervals, where the first bin is $0 < x \leq 10$ second bin is $10 < x \leq 20$ etc. The first example you give would be described as left closed, right open intervals, where the first bin is $0 \leq x < 10$ second bin is $10 \leq x < 20$ etc. To look at interval terminology (see Wikipedia for more consideration of this, or this StackOverflow question for an R specific example): a paper/thesis, then it would of course be helpful to describe which type of interval you are using. If you're wanting to present your histogram in e.g. examining rough normality of residuals in a linear regression with a histogram), this decision is somewhat arbitrary (but will potentially change the shape of the figure, depending on how many observations fall on the breakpoints and the size of the dataset).ĭifferent computer packages handle values on the breakpoints in different ways by default. I don't believe there is any convention (see summary of statistical packages below.)įor considering the distribution of a set of data (e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |