Help! Code to calculate different percentiles

Hi All,

I am a novice when it comes to programming with Igor.

I currently have a dataset that contains hourly RH values (see attached txt file as a sample). I am trying to write a procedure that calculates the 75th and 95th percentiles for each hour. I found a procedure previously posted on this forum that appears to address what I need (https://www.wavemetrics.com/forum/general/box-and-whisker-plot-selected…) but I can't seem to make it work. Whenever, I click compile, I get an error message "Function Compilation Error; expected a keyword or an object name" with "fWavePercentile" highlighted as the source of error.

I am not sure how to resolve this. Anyone has any ideas? I am using Igor 8.04. 

RH data.txt (13.5 KB)

"fWavePercentile" is a function in the Percentiles and Box Plot analysis package in Igor. You must enable this package in order for Igor to recognize this function name. 

You can do this by selecting Analysis>Packages> Percentiles and Box Plot . Or, simply type at the top of your procedure window: 

#include <Percentile and Box Plot>

 

I suspect this will solve your problem. 

Sounds like you really need the built-in StatsQuantiles command. The Percentile and Box Plot package was written before StatsQuantiles was added to Igor.