PanelData()
returns an object of class PanelData
. This takes the form of a data.frame
object with the following properties and attributes. First, the data has been balanced and sorted. These properties are noted in the "is.balanced" and "is.sorted" attributes, respectively. So, each unit appears the same number of times in the resulting PanelData
object, with NAs filling out missing data. Second, the data has been sorted to appear in order for each unit. Next, the PanelData
object has the following attributes: "unit.id", "time.id", "treatment", and "outcome" reflecting the variables provided in the specification. If the function attempts to automatically convert time data to be consecutive integers, the mapping between the original time data and the "new" converted time data is provided as a data.frame
object and stored as the "time.data.map" attribute.