Description Usage Arguments Author(s) See Also Examples
Bias-Corrected and Accelerated Confidence Intervals
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
thetahatstar |
Numeric vector. Sampling distribution of thetahat. |
thetahatstarjack |
Numeric vector.
Jackknife vector of parameter estimates.
If |
thetahat |
Numeric. Parameter estimate. |
theta |
Numeric. Parameter. Optional argument. |
data |
|
std |
Logical. Standardize the indirect effect \hat{α} \hat{β} \frac{σ_x}{σ_y}. |
complete |
Logical.
If |
alpha |
Numeric vector.
Alpha level.
By default |
par |
Logical.
If |
ncores |
Integer.
Number of cores to use if |
blas_threads |
Logical.
If |
mc |
Logical.
If |
lb |
Logical.
If |
Ivan Jacob Agaloos Pesigan
Other confidence intervals functions:
bcci()
,
evalci()
,
len()
,
pcci()
,
shape()
,
theta_hit()
,
zero_hit()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | B <- 5000
data <- jeksterslabRdatarepo::thirst
n <- nrow(data)
muthetahat <- colMeans(data)
Sigmathetahat <- cov(data)
thetahat <- fit.ols(data, minimal = TRUE)
thetahatstar <- pb.mvn(
muthetahat = muthetahat, Sigmathetahat = Sigmathetahat,
n = n, B = 5000, par = FALSE
)
bcaci(
thetahatstar = thetahatstar,
thetahat = thetahat,
theta = 0.15, # assuming that the true indirect effect is 0.15
data = data,
par = FALSE
)
thetahat <- fit.ols(data, minimal = TRUE, std = TRUE)
thetahatstar <- pb.mvn(
muthetahat = muthetahat, Sigmathetahat = Sigmathetahat,
n = n, std = TRUE, B = 5000, par = FALSE
)
bcaci(
thetahatstar = thetahatstar,
thetahat = thetahat,
theta = 0.15, # assuming that the true indirect effect is 0.15
data = data,
std = TRUE,
par = FALSE
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.