dot-CIWald: Wald Confidence Intervals

.CIWaldR Documentation

Wald Confidence Intervals

Description

Generates Wald Confidence Intervals

Usage

.CIWald(
  est,
  se,
  theta = 0,
  alpha = c(0.05, 0.01, 0.001),
  z = FALSE,
  df,
  test = FALSE
)

Arguments

est

Numeric vector. Estimates.

se

Numeric vector. Standard errors of estimates.

theta

Numeric vector. Parameter values when the null hypothesis is true.

alpha

Numeric vector. Significance level/s.

z

Logical. If z = TRUE, use the standard normal distribution. If z = FALSE, use the t distribution.

df

Numeric. Degrees of freedom if z = FALSE.

test

Logical. If TRUE, return only the results of hypothesis tests. If FALSE, return both results of hypothesis tests and confidence intervals.

Value

Returns a numeric matrix with the following variables:

est

Estimates

se

Standard errors

t or z

Test statistics

p

p value

ci

Confidence intervals

Note that if test = TRUE, the ci columns are omitted.

Author(s)

Ivan Jacob Agaloos Pesigan


jeksterslab/wald documentation built on July 14, 2022, 8:05 a.m.