movingSEM: movingSEM

View source: R/CodeAndRoll2.R

movingSEMR Documentation

movingSEM

Description

Calculates the moving / rolling standard error of the mean (SEM) on a numeric vector.

Usage

movingSEM(x, oneSide = 5)

Arguments

x

A numeric vector.

oneSide

The size of the moving window, in terms of the number of elements on either side of the current element.

Value

A vector of the same length as x, containing the SEMs for each element.


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.