Name
studentize — studentize a ts, a vector or a matrix
CALLING SEQUENCE
[t]=studentize(x)
PARAMETERS
- Input
x = a vector or matrix
- Output
t = transformed matrix or ts
DESCRIPTION
If x is a vector or a ts, substract its mean and divide by its standard deviation. If x is a matrix, do the above for each column.
EXAMPLE
load(GROCERDIR+'/data/bdhenderic.dat')
y=studentize(lm1)