PHP script for calculating Krippendorff's Alpha
Question
I can't find any PHP script to compute Krippendorff's Alpha. I need this for a project I'm working on, but the only things that I was able to find online are either written in Python (that I know nothing of) or are for SAS/SPSS software suites.
Any help is appreciated.
Thanks!
Solution
PHP and Perl syntax are quite similar. Here's the Perl script from the ALPHA resource page. I am sure you know how to convert the for loops/etc in Perl to PHP. If you are unsure about the syntax, search the Perl docs or internet and find the equivalent in PHP. You should be able to develop an equivalent PHP script by looking at the sample Perl one.
OTHER TIPS
This is my javascript library for Krippendorff's Alpha. The detail instruction could be found in README.md. Hope it could help.