This function takes a raw ERA dataset and determines set differences (practices in the experimental but not the control treatment) and commonalities (practices shared by experimental and control treatments) for each row of the data. Control h codes are removed from the comparison.

ExtractTreatment(Data, cores, N.Cols)

Arguments

Data

A raw ERA dataset.

cores

The number of logical cores to use for parallel processing.

N.Cols

The number of T or C columns in the dataset.

Value

Two columns are appended to Data:

  1. plist = a list of practice codes in the experimental treatment not in the control treatment.

  2. base.list = a vector of practice codes shared by the experimental and control treatments, codes are concatenated with a - delimiter.

Details

In the raw dataset treatment practice codes are recorded in T columns (e.g., T1,T2, etc.) for the experimental condition and C columns for the control condition.