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.
"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:
I suspect this will solve your problem.
February 4, 2022 at 11:00 am - Permalink
It works! Thanks so much for your help. I really appreciate it!
February 5, 2022 at 12:39 am - Permalink
Sounds like you really need the built-in StatsQuantiles command. The Percentile and Box Plot package was written before StatsQuantiles was added to Igor.
February 7, 2022 at 12:29 pm - Permalink