Name | Function | Description |
@movsum(x,n) | n-period backward moving sum | ![]() |
@movav(x,n) | n-period backward moving average | ![]() |
@movavc(x,n) | n-period centered moving average | centered moving average of X. Note if n is even then the window length is increased by one and the two endpoints are weighted by 0.5. NAs are propagated. |
@movstdev(x,n) | n-period backwards moving standard deviation | sample standard deviation (division by ![]() ![]() |
@movstdevs(x,n) | n-period backwards moving sample standard deviation | sample standard deviation (division by ![]() ![]() |
@movstdevp(x,n) | n-period backwards moving population standard deviation | population standard deviation (division by ![]() ![]() |
@movvar(x,n) | n-period backwards moving variance | population variance (division by ![]() ![]() |
@movvars(x,n) | n-period backwards moving sample variance | sample variance (division by ![]() ![]() |
@movvarp(x,n) | n-period backwards moving population variance | population variance (division by ![]() ![]() |
@movcov(x,y,n) | n-period backwards moving covariance | population covariance (division by ![]() ![]() |
@movcovs(x,y,n) | n-period backwards moving sample covariance | sample covariance (division by ![]() ![]() |
@movcovp(x,y,n) | n-period backwards moving population covariance | population covariance (division by ![]() ![]() |
@movcor(x,y,n) | n-period backwards moving correlation | correlation between X and Y of the current and previous ![]() |
@movmax(x,n) | n-period backwards moving maximum | the maximum of X for the current and previous ![]() |
@movmin(x,n) | n-period backwards moving minimum | the minimum of X for the current and previous ![]() |
@movsumsq(x,n) | n-period backwards sum-of-squares | the sum-of-squares of X for the current and previous ![]() |
@movskew(x,n) | n-period backwards skewness | the skewness of X for the current and previous ![]() |
@movkurt(x,n) | n-period backwards kurtosis | the kurtosis of X for the current and previous ![]() |
@movobs(x,n) | n-period backwards nmber of non-NA observations | the number of non-missing observations in X for the current and previous ![]() |
@movnas(x,n) | n-period backwards nmber of NA observations | the number of missing observations in X for the current and previous n-1 observations. Note this function always returns the same value as @mnas. |
@movinner(x,y,n) | n-period backwards inner product of X and Y | inner product of X and Y for the current and previous ![]() |
@msum(x,n) | n-period backward moving sum | ![]() |
@mav(x,n) | n-period backward moving average | ![]() |
@mavc(x,n) | n-period centered moving average | centered moving average of X. Note if n is even then the window length is increased by one and the two endpoints are weighted by 0.5. NAs are not propagated. |
@mstdev(x,n) | n-period backwards moving standard deviation | sample standard deviation (division by ![]() ![]() |
@mstdevs(x,n) | n-period backwards moving sample standard deviation | sample standard deviation (division by ![]() ![]() |
@mstdevp(x,n) | n-period backwards moving population standard deviation | population standard deviation (division by ![]() ![]() |
@mvar(x,n) | n-period backwards moving variance | population variance (division by ![]() ![]() |
@mvars(x,n) | n-period backwards moving sample variance | sample variance (division by ![]() ![]() |
@mvarp(x,n) | n-period backwards moving population variance | population variance (division by ![]() ![]() |
@mcov(x,y,n) | n-period backwards moving covariance | population covariance (division by ![]() ![]() |
@mcovs(x,y,n) | n-period backwards moving sample covariance | sample covariance (division by ![]() ![]() |
@mcovp(x,y,n) | n-period backwards moving population covariance | population covariance (division by ![]() ![]() |
@mcor(x,y,n) | n-period backwards moving correlation | correlation between X and Y of the current and previous ![]() |
@mmax(x,n) | n-period backwards moving maximum | the maximum of X for the current and previous ![]() |
@mmedian(x,n) | n-period backward moving median | the median of X for the current and previous ![]() |
@mmin(x,n) | n-period backwards moving minimum | the minimum of X for the current and previous ![]() |
@msumsq(x,n) | n-period backwards sum-of-squares | the sum-of-squares of X for the current and previous ![]() |
@mskew(x,n) | n-period backwards skewness | the skewness of X for the current and previous ![]() |
@mkurt(x,n) | n-period backwards kurtosis | the kurtosis of X for the current and previous ![]() |
@mobs(x,n) | n-period backwards number of non-NA observations | the number of non-missing observations in X for the current and previous ![]() |
@mnas(x,n) | n-period backwards number of NA observations | the number of missing observations in X for the current and previous ![]() |
@minner(x,y,n) | n-period backwards inner product of X and Y | inner product of X and Y for the current and previous ![]() |