mxc_mulruns: MxC Mulruns

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

View source: R/mxc_mulruns.R

Description

This function will process all the runs in a single experiment given the folder name, and write results to .csv files.

Usage

1
mxc_mulruns(home, filename)

Arguments

home

Parent directory path.

foldername

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

Details

This function will aggregate each run into age and gender groupings, find the averages for the Time and Events variables in each run and average these out across all the runs. Method is as follows: Step 1: Create a dataframe to store all the group average values. Step 2: Run a for loop from 1 to N (N is the number of runs in this experiment) 2a: Call mxc_indrun, which will calculate individual run averages for all the variables in run N. 2b: Store the resulting values in the data frame created. Step 3: Calculate the overall means, SD and CI accross all the x runs.

Value

Will write multiple csv files into the Folders with the experiments.

Author(s)

Sindiso Nyathi

See Also

mxc_master, mxc_indrun, mxc_dealsd

Examples

1
2
mxc_mulruns(home, "Baseline")
mxc_mulruns(home, "Intervention 1")

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