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!
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.