+ Reply to Thread
Results 1 to 4 of 4

Thread: Binning data in Stata 9.1

  1. #1
    Points: 68, Level: 1
    Level completed: 36%, Points required for next Level: 32

    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Binning data in Stata 9.1




    Hi,
    Could anyone tell me how to bin data in Stata 9? I want to construct a table for Fisher's exact test and can't seem to get the coding right.
    Thanks!

  2. #2
    RoboStataRaptor
    Points: 10,345, Level: 67
    Level completed: 74%, Points required for next Level: 105
    bukharin's Avatar
    Location
    Sydney, Australia
    Posts
    1,295
    Thanks
    11
    Thanked 320 Times in 311 Posts

    Re: Binning data in Stata 9.1

    If you want to test associations why would you bin rather than using a test that uses all of your data?

  3. #3
    Points: 68, Level: 1
    Level completed: 36%, Points required for next Level: 32

    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Binning data in Stata 9.1

    Wanting to test if I see a higher exposure to a pathogen at higher environmental levels of exposure. Binning seemed like a good way to do that.(?)

  4. #4
    RoboStataRaptor
    Points: 10,345, Level: 67
    Level completed: 74%, Points required for next Level: 105
    bukharin's Avatar
    Location
    Sydney, Australia
    Posts
    1,295
    Thanks
    11
    Thanked 320 Times in 311 Posts

    Re: Binning data in Stata 9.1


    Not really because you are throwing away the granularity of your data. How have you measured the exposures?

    If both variables are continuous you could use some kind of correlation analysis (Pearson's or Spearman's depending on the shape of the relationship), or a regression model if you wanted to adjust for other factors. If one of the variables is categorical and the other one is continuous then there are various methods depending on which one is which, and whether the data are (more or less) normally distributed.

+ Reply to Thread

           




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats