pcci: Percentile Confidence Intervals

Description Usage Arguments Author(s) See Also Examples

View source: R/ci.R

Description

Percentile Confidence Intervals

Usage

1
pcci(thetahatstar, thetahat, theta = NULL, alpha = c(0.001, 0.01, 0.05))

Arguments

thetahatstar

Numeric vector. Sampling distribution of thetahat.

thetahat

Numeric. Parameter estimate.

theta

Numeric. Parameter. Optional argument.

alpha

Numeric vector. Alpha level. By default alpha = c(0.001, 0.01, 0.05).

Author(s)

Ivan Jacob Agaloos Pesigan

See Also

Other confidence intervals functions: bcaci(), bcci(), evalci(), len(), shape(), theta_hit(), zero_hit()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
B <- 5000
data <- jeksterslabRdatarepo::thirst
thetahat <- fit.ols(data, minimal = TRUE)
n <- nrow(data)
muthetahat <- colMeans(data)
Sigmathetahat <- cov(data)
thetahatstar <- pb.mvn(
  muthetahat = muthetahat, Sigmathetahat = Sigmathetahat,
  n = n, B = 5000, par = FALSE
)
pcci(
  thetahatstar = thetahatstar,
  thetahat = thetahat,
  theta = 0.15 # assuming that the true indirect effect is 0.15
)

jeksterslabds/jeksterslabRmedsimple documentation built on Oct. 16, 2020, 11:30 a.m.