imovingSEM: imovingSEM

View source: R/CodeAndRoll2.R

imovingSEMR Documentation

imovingSEM

Description

Calculates the moving / rolling standard error of the mean (SEM). It calculates it to the edge of the vector with incrementally smaller window-size.

Usage

imovingSEM(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.