scaleTs {DGM}R Documentation

Scaling data. Zero centers and scales the nodes (SD=1).

Description

Scaling data. Zero centers and scales the nodes (SD=1).

Usage

scaleTs(X)

Arguments

X

time x node 2D matrix, or 3D with subjects as the 3rd dimension.

Value

S centered and scaled matrix.

Examples

# create some sample data
ts = array(rnorm(200*5, mean=5, sd=10), dim=c(200,5))
ts = scaleTs(ts)


[Package DGM version 1.7.4 Index]