What is the “alignment” parameter for binning?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7111 Score: 0
    Dan Damelin
    Keymaster

    If you bin cases there are two options to adjust how the binning occurs—bin width and alignment. What does the alignment parameter do?

     

    #7254
    Bill Finzer
    Keymaster

    Hi Dan,

    The alignment parameter ensures that a bin boundary will be aligned on that value. For example, if, for some reason, you need a bin to begin at the value 3, setting the alignment parameter to 3 will guarantee that.

    Bill

    #7337
    Jacob Sagrans
    Participant

    If you don’t set the alignment parameter, is the default always to start the first bin at 0, even if there are negative values in the data? Also, I tried changing the alignment for bins for mammals’ lifespan from 0 to 10, and it gave me a bin of [-10, 10), even though there are of course no negative values for this attribute. I guess that makes sense in a certain way (having equal bins for -10 to 10, 10 to 30, 30 to 50, etc.), but is also a bit weird.

    #7338
    Dan Damelin
    Keymaster

    Hi Jacob,

    I tried to replicate this but didn’t see it. Am I setting things up differently than you did?

     

    #7340
    Jacob Sagrans
    Participant

    This is what I did:

    Attachments:
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.