calc.foldrange function

Calculate stadard error and fold-range from confidence interval

Calculate stadard error and fold-range from confidence interval

Given a confidence interval and sample size, we find the standard error assuming confidence limits are calculated on the log10 responses by either normal confidence limits or t-distribution confidence limits. The fold-range is also output by either methods.

calc.foldrange(n, lower, upper, conf.level = 0.95)

Arguments

  • n: vector of sample size(s) used to create confidence intervals
  • lower: vector of lower confidence limits
  • upper: vector of upper confidence limits
  • conf.level: confidence level, default=.95

Details

See vignette("hbimdetails")

Returns

A vector (or matrix) with elements (or columns) - n: sample size

  • lower: lower confidence limit

  • upper: upper confidence limit

  • s.byt: standard deviation assuming confidence intervals calculated by t-distribution

  • s.byz: standard deviation assuming confidence intervals calculated by normal distribution

  • foldrange.byt: fold-range assuming confidence intervals calculated by t-distribution

  • foldrange.byz: fold-range assuming confidence intervals calculated by normal distribution

Examples

## sample size=43, lower cl=65, upper cl=85 calc.foldrange(43,65,85)
  • Maintainer: Michael P. Fay
  • License: GPL-3
  • Last published: 2023-08-24

Useful links