scaleTs {DGM} | R Documentation |
Scaling data. Zero centers and scales the nodes (SD=1).
scaleTs(X)
X |
time x node 2D matrix, or 3D with subjects as the 3rd dimension. |
S centered and scaled matrix.
# create some sample data
ts = array(rnorm(200*5, mean=5, sd=10), dim=c(200,5))
ts = scaleTs(ts)