sterr: Calculate the standard error

Description Usage Arguments Examples

Description

The 'sterr()' function calculates the standard error of a variable, taking into account NA values, either to keep or remove them depending on the user input to the na.rm argument.

Usage

1
sterr(x, na.rm = FALSE)

Arguments

x

A numeric vector for which the standard error will be calculated from.

na.rm

If *NA* values are not an issue, then *FALSE*, otherwise, *TRUE*.

Examples

1
2
x <- rnorm(10, 5, 0.25)
sterr(x)

AFMSAnalytics/utilityScripts documentation built on May 30, 2019, 10:45 p.m.