Learn R Programming

spartan (version 3.0.2)

efast_process_netlogo_result: Analyses Netlogo simulation data for parameter sets generated for eFAST

Description

Takes each parameter value set generated by eFAST in turn, and analyses the Netlogo simulation results. For each parameter set, there will be n simulation results. This method goes through these results, producing a file containing the median of each output measure for each of the n runs. Thus, if a Netlogo simulation was replicated 10 times, the median file will contain 10 medians for each simulation output measure. The user should then run efast_get_overall_medians and efast_run_Analysis to analyse the results

Usage

efast_process_netlogo_result(FILEPATH, EFASTSAMPLE_RESULTFILENAME,
  PARAMETERS, NUMCURVES, NUMSAMPLES, MEASURES, RESULTFILENAME, TIMESTEP)

Arguments

FILEPATH

Directory where the simulation runs can be found

EFASTSAMPLE_RESULTFILENAME

Name of the result file generated by Netlogo, for an eFAST parameter sample.

PARAMETERS

Array containing the names of the parameters of which parameter samples will be generated

NUMCURVES

The number of 'resamples' to perform (see eFAST documentation) - recommend using at least 3.

NUMSAMPLES

The number of parameter subsets that were generated from each curve in the eFAST design

MEASURES

Array containing the names of the Netlogo output measures which are used to analyse the simulation.

RESULTFILENAME

Name of the result file that will be produced which summarises all results

TIMESTEP

Timestep of the Netlogo simulation being analysed.