stdz_xy function

Standardize x and y vectors to achieve zero mean and unit variance.

Standardize x and y vectors to achieve zero mean and unit variance.

stdz_xy(x, y)

Arguments

  • x: Vector of data which can have NA's
  • y: Vector of data which can have NA's

Returns

  • stdx: standardized values of x

  • stdy: standardized values of y

Note

This works even if there are missing x or y values.

Examples

## Not run: set.seed(30) x=sample(20:30) y=sample(21:31) stdz_xy(x,y) ## End(Not run)

Author(s)

Prof. H. D. Vinod, Economics Dept., Fordham University, NY

  • Maintainer: H. D. Vinod
  • License: GPL (>= 2)
  • Last published: 2023-10-09

Useful links