Description Usage Arguments Value Author(s) Examples
View source: R/fit.factor.models.R
Function to perform cross-sectional standardization of raw data (vectorized)
1 | fit.zscore(x, dte, w = 1, grp = 1, rob.stats = FALSE)
|
x |
vector of data to be standardized |
dte |
vector of dates (or anything else) used to partition the data |
w |
optional vector of weights used to calculate weighted mean, defaults to equal weighted |
grp |
optional vector of group designations used to standardize within groups, defaults to a signle group |
rob.stats |
logical parameter to subtract the the median rather than the mean, defaults to FALSE |
vector of standardized data with a mean near zero and a standard deviation near one
Roger J. Bos, roger.bos@gmail.com
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.