View source: R/geometricMean.R

gm_sd | R Documentation |

`gm_sd`

takes as input a numeric vector and returns the geometric
standard deviation

```
gm_sd(x, na.rm = TRUE, zero.propagate = FALSE)
```

`x` |
A vector of numbers |

`na.rm` |
Should NA values be removed? (logical) |

`zero.propagate` |
Should zeroes be propagated? (logical) |

Per Wikipedia's entry on the geometric standard deviation, https://en.wikipedia.org/wiki/Geometric_standard_deviation, the geometric standard deviation is dimensionless. See that entry for the formula used.

Also, note that the way you determine the range of the data for the geometric
mean and one geometric standard deviation is NOT ```
geometric mean value
+/- the geometric standard deviation
```

! Instead, it is ```
geometric mean /
geometric standard deviation
```

to ```
geometric mean * geometric standard
deviation
```

!

```
gm_sd(rnorm(10, 5, 1))
gm_sd(c(5, 3, 6, 10, 2, 0), zero.propagate = TRUE)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.