mxc_indrun: MxC Indrun

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/mxc_indrun.R

Description

This function will read in a single run and group adolescents by gender and age, and find variable averages

Usage

1
mxc_indrun(home, results, run_number, filename, simulation_length)

Arguments

home

Parent directory path.

results

The run .csv file with the adolescents.

run_number

The run number.

filename

String name of file with the runs eg. "Baseline"

simulation_length

Length of the simulation

Details

This function will aggregate a run into age and gender groupings, find the averages for the Time and Events variables.This is done by taking the variable values for each gender/age grouping and finding the means, for each of these. The Gender age groupings processed are m6-9yrs, f6 - 9yrs, m10-15yrs, f10-15yrs, m15-18yrs, f15-18yrs, as well as male overall, and female overall and all overall.

Value

A file formatted, with required groupings and ages for the variables of interest.

Author(s)

Sindiso Nyathi

See Also

mxc_master, mxc_mulruns, mxc_dealsd

Examples

1
2
mxc_indrun(home, mxc_run2.csv, 2, "Baseline", 5)
mxc_indrun(home, mxc_run34.csv, 34, "Intervention 1", 5)

SindisoNyathi/MxC documentation built on May 20, 2019, 9:13 p.m.