rsd: Computing relative standard deviation of a vector

Description Usage Arguments Details Value Author(s) Examples

Description

This function computes the relative standard deviation (also known as coefficient of variation) of a numeric vector defined as the ratio of the standard deviation to the mean of the vector elements, expressed as percentage

Usage

1
rsd(v)

Arguments

v

a numeric vector

Details

the coefficient of variation shows the extent of variability in relation to mean of the population. It is expressed as a percentage. Lower values indicate lower variability.

Value

the value of the coefficient of variation of the input vector expressed as a percentage and rounded to two decimal places

Author(s)

Piergiorgio Palla

Examples

1
2
v <-  runif(10, min = 5, max = 30)
rsd(v) 

Example output

Loading required package: AUCRF
Loading required package: randomForest
randomForest 4.6-14
Type rfNews() to see new features/changes/bug fixes.
AUCRF 1.1

Attaching package: 'RFmarkerDetector'

The following object is masked from 'package:stats':

    screeplot

[1] 53.57

RFmarkerDetector documentation built on May 2, 2019, 3:42 p.m.