gluc / ahp

Analytical Hierarchy Process (AHP) with R
97 stars 41 forks source link

problem in calculate ahp file #14

Closed mayt1992 closed 7 years ago

mayt1992 commented 7 years ago

I have made a yaml file and am trying to use the ahp package. I can load the file and visualize, but cannot use calculate. I have made a gist with both the ahp file and my R code. If you're able to tell me where I went wrong, it would be much appreciated! You can access the gist here: https://gist.github.com/mayt1992/6e361c5d63854c49e093fc79d8f0b5f5

gluc commented 7 years ago

There were a few glitches in your yaml file. Unfortunately, debugging these can be rather cumbersome :( Anybody with a great idea how to add a debug mode to the package is encouraged to provide a pull request :)

See here for details/changes necessary to your yaml file: https://gist.github.com/gluc/faa3d536e9024dd5a897dd6d34d6239a/revisions#diff-3818cb45e4e9677097743ad966d81704

The file that is working is here: https://gist.github.com/gluc/faa3d536e9024dd5a897dd6d34d6239a#file-port_risk-yaml

I typically use the app at http://ipub.com/apps/ahp/ to debug.