Learn R Programming

spartan (version 3.0.2)

getMediansSubset: Function used to calculate the median results for those run under a set of parameter samples

Description

Internal function used to calculate the median set where a simulation has been run a number of times for a given parameter set. Used in all of Techniques 1-4 detailed in the R Journal

Usage

getMediansSubset(FILEPATH, NUMRUNSPERSAMPLE, measures, resultfilename,
  altfilename = NULL, outputfilecolstart, outputfilecolend)

Arguments

FILEPATH

Where the simulation results can be found

NUMRUNSPERSAMPLE

Number of times the simulation has been run for a parameter set

outputfilecolstart

Number of the column of the CSV file where results commence

outputfilecolend

Number of the column of the CSV file where results end

MEASURES

Names of Simulation output responses

RESULTFILENAME

Name of the simulation result file

ALTFILENAME

Where necessary, name of the alternative result file

Value

Median Simulation responses under the parameter set in the result file