Learn R Programming

meta (version 3.0-1)

ci: Calculation of confidence intervals (based on normal approximation or t-distribution)

Description

Calculation of confidence intervals; based on normal approximation or t-distribution.

Usage

ci(TE, seTE, level=0.95, df=NULL)

Arguments

TE
Estimated treatment effect.
seTE
Standard error of treatment estimate.
level
The confidence level required.
df
Degrees of freedom (for confidence intervals based on t-distribution).

Value

  • List with components
  • TEEstimated treatment effect.
  • seTEStandard error of treatment estimate.
  • lowerLower confidence limits.
  • upperUpper confidence limits.
  • zTest statistic (either z-score or t-score).
  • pP-value of test with null hypothesis TE=0.
  • levelThe confidence level required.
  • dfDegrees of freedom (t-distribution).

Examples

Run this code
data.frame(ci(170, 10))
data.frame(ci(170, 10, 0.99))
data.frame(ci(1.959964, 1))
data.frame(ci(2.2621571628, 1, df=9))

Run the code above in your browser using DataLab