estimate_sd: Estimate standard deviation from mean, min, and max

Description Usage Arguments Examples

View source: R/misc_functions.R

Description

Estimate standard deviation from mean, min, and max

Usage

1
estimate_sd(mean, min, max, num_sds = 3)

Arguments

mean

The mean

min

The minimum

max

The standard deviation

num_sds

Number of standard deviations before reaching min/max

Examples

1
2
3
4
5
# estimate sd when a distribution has a mean of 10, min of 5, max of 10.
# this will use 3 stanard deivations to cover the range
estimate_sd(10, 5, 15)
# this will use 2 stanard deivations to cover the range
estimate_sd(10, 5, 15, 2)

dustinfife/bluepill documentation built on Oct. 27, 2021, 12:08 p.m.