Closed Edouard-Legoupil closed 6 years ago
Hi Edouard,
Unfortunately I do not have such a script. Doing it generically for all possible problems might be difficult.
But if you have a specific problem at hand, it's certainly feasible.
I can think of the following possibilities:
Personally, I would probably go for 2, as it's probably quicker to implement. Either way, depending on the structure of your input data, and the complexity of your problem, this might be a bit of work.
Good luck!
Christoph
I was thinking of a third way, some sort of hybrid:
This gist illustrates how this works: https://gist.github.com/gluc/b03520be946a6d8dcff7b014ae2cfbc7
Dear Christoph,
Thanks for your reply.. I went for option 1 as I am looking at building a work-flow from the expert consultation survey till the compilation of results...
I have made various test: my script is here: https://github.com/unhcr-mena/analytic-hierarchy-process/blob/gh-pages/code/2-build-hierarchy.R
as of now, it creates a YAML file: https://github.com/unhcr-mena/analytic-hierarchy-process/blob/gh-pages/data/4-write-test-final.ahp (still need to take out the single quote wrapping)
I tried to tweak this file here:
pairwiseFunction
within the children of the Goal in order to process the pairwise define within the preferences../
Result is here: https://github.com/unhcr-mena/analytic-hierarchy-process/blob/gh-pages/data/test.ahp It's not working... Any hint?
Thanks a lot Edouard
Hi,
I am trying to build the AHP file from the result of a pairwise comparison survey.
Do you have an example for a script that would build the correct YAML format out of a data frame showing the results of a pairwise comparison survey?
Thanks a lot, Edouard