Description Usage Arguments Value Examples
Confirmatory hypotheses testing of scientific expectations.
1 2 |
object |
object of class |
hyp |
hypothesis to test |
... |
currently ignored |
object of class confirm
BF
Bayes factor
post_probs
posterior probabilities
prior_probs
prior probabilities
model
model type (melsm
)
mixture
mixture type
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 | ## Not run:
dat <- nlme::Orthodont
fit <- melsm(fixed_location = distance ~ age,
random_location = ~ age | Subject,
fixed_scale = sigma ~ 1, k = 3,
random_scale = ~ 1 | Subject,
adapt = 5000,
iter = 10000,
rho_test = "all",
mixture = "SSVS",
data = dat)
# hypothesis (rho_01 is null and rho_02 is negative )
# vs compliment (not h1)
hyp <- list(h1 = c("rho_01 = k1", "rho_02 = k3"))
confirm(fit, hyp)
# hypothesis (both positive) vs both null
hyp <- list(h1 = c("rho_01 = k2", "rho_02 = k2"),
h2 = c("rho_01 = k1", "rho_02 = k1"))
confirm(fit, hyp)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.