Quadstat Output - Median

Submitted by Anonymous (not verified) on May 12, 2019 - 6:21 PM

Computing the Median

To compute the median, we must first list all the sorted observations in column X.heart. like this:

36, 71, 86, 107, 115, 131, 167, 167, 172, 183, 191, 199, 207, 211, 211, 220, 227, 266, 285, 297, 300.

Next, we need to count the number of observations. In our case that is 21.

If the number of observations is odd, we add one and then divide by 2. This is the position of the median counting from the beginning.

If the number of observations is even, we then take average of the two middle numbers.

In our case, we have an odd number of observations. So we add 1 and then divide by 2. The median is 11 positions from the start of our list. That gives us 191.

191 is the median.

Analysis License
Public Domain

From Around the Site...

Title Authored on Content type
R Dataset / Package Zelig / friendship March 9, 2018 - 1:06 PM Dataset
R Dataset / Package car / Ornstein March 9, 2018 - 1:06 PM Dataset
R Dataset / Package DAAG / nasshead March 9, 2018 - 1:06 PM Dataset
R Dataset / Package gamclass / fars2007 March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Ecdat / Catsup March 9, 2018 - 1:06 PM Dataset