Information about tools4MCDA example
The MCDA can be run in two parts:
*Part 1: Estimate a proxy of spatial fishing pressure based on MCDA and include species distribution – This part can run using R under the tools4MCDA R-package *Part 2: The estimated proxy of spatial fishing pressure and/or species distribution, produced by the part 1 can be combined with the tables A and G of FDI to estimate spatial effort and/or landings in the format of the tables H and I of FDI and in a finer spatial scale– This part can be run using R under the tools4MCDA R-package
A folder named tools4MCDA_example was created for the Greek Case study and stored in this repository.
This folder contains an example for the Greek case study and was created using processed data based on open repositories. In particular the following datasets were created and included in the folder tools4MCDA_example:
*input_data: example datasets that can be useful for executing the main scripts. The above datasets can be considered as the basis and the user can run the tools with more refined data. *Main_scripts: in this folder are included: i) instructions to install the required packages; ii) three preparatory scripts (a,b,c) to prepare the datasets for running MCDA; iii) two main scripts for running part 1 and part 2. *results: outcomes of this example stored in two folders (outcome 1 and outcome 2)
Requirements for the tools4MCDA rpackage -R and R-Studio are needed -R-version: latest version (or > R-4.3.2 64bit preferably) -Install the tools4MCDA R package. Instructions of installing all the required R packages are included in packages_required.R
General instructions for running the MCDA procedures:
- Download the input_data folder from the tools4MCDA_example and store it locally under a folder example. Uncompress the files cdist.rar and chl.rar.
- Install R, Rstudio and the required R packages.
- Open Rstudio
- Download and open the R-scripts stored in the main_scripts folder from tools4MCDA_example
- Revise only the following line in each script to navigate to the example folder created locally: general$path<-file.path("C:", "….","example",sep='')
- Run the R-scripts in the following order:
- packages_required.R
- tools4MCDA_prep_script_a_GRC_example.R
- tools4MCDA_prep_script_b_GRC_example.R
- tools4MCDA_prep_script_c_GRC_example.R
- tools4MCDA_part1_GRC_example.R
- tools4MCDA_part2_GRC_example.r