Transform the input data
transformData(data, p, opt)
data
the data
p
the order of the VAR
opt
a list containing the options