I am trying to find the 25% (1st Quartile) on a set of data . However, I want to get the quartile base on ID (I have 51 different IDs) and a second category that is "0" or "1".
The problem I am having when using the quartile function is that I get the quartile for the entire range of data (6700 lines) and not just the quartile for the data that meets my conditions.
How do I set up conditions on teh quartile function so that it only returns the quartile for data that matches condition 1 adn condition 2. For example, I want the quartile for ID = 25 and condition 1 (Not the quartile for all of ID = 25 or all the data).
Thanks in advance
The problem I am having when using the quartile function is that I get the quartile for the entire range of data (6700 lines) and not just the quartile for the data that meets my conditions.
How do I set up conditions on teh quartile function so that it only returns the quartile for data that matches condition 1 adn condition 2. For example, I want the quartile for ID = 25 and condition 1 (Not the quartile for all of ID = 25 or all the data).
Thanks in advance