This is a function to create a widened data.frame from the MOAS. Widening of the data is necessary for performing ANOVAs and other statistical analysis, particularly if intending to run in SPSS.

widen(data, by, keep = NULL)

Arguments

data

The MOAS or a MOAS generated file.

by

Column which to widen by

keep

Option to provide to [site_keeper()] for filtering the double/triple scanned

Value

A MOAS type file widened by selected column, prefixed with columns specifications

Details

For MOAS which inclused double/triple scans, by="Site_Name", must be run prior to by="Project_Wave".

'by' options are:

  • Subject_Timepoint

  • Project_Wave

  • Site_Name

  • Site_Number

Examples

if (FALSE) { widen(MOAS, by="Site_Name") widen(MOAS, by="Project_Wave") # Data with double/triple scans must be widened # in a two-stage process dt = widen(MOAS, by="Site_Name") df = widen(dt, by="Project_Wave") }