Description Usage Arguments Author(s) See Also Examples
Percentile Confidence Intervals
1 |
thetahatstar |
Numeric vector. Sampling distribution of thetahat. |
thetahat |
Numeric. Parameter estimate. |
theta |
Numeric. Parameter. Optional argument. |
alpha |
Numeric vector.
Alpha level.
By default |
Ivan Jacob Agaloos Pesigan
Other confidence intervals functions:
bcaci()
,
bcci()
,
evalci()
,
len()
,
shape()
,
theta_hit()
,
zero_hit()
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
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.