Description Usage Arguments Value Author(s) See Also Examples
Performs Wald or score tests
1 | modelsearch(x, k = 1, dir = "forward", ...)
|
x |
|
k |
Number of parameters to test simultaneously. For |
dir |
Direction to do model search. "forward" := add associations/arrows to model/graph (score tests), "backward" := remove associations/arrows from model/graph (wald test) |
... |
Additional arguments to be passed to the low level functions |
Matrix of test-statistics and p-values
Klaus K. Holst
1 2 3 4 5 6 7 | m <- lvm();
regression(m) <- c(y1,y2,y3) ~ eta; latent(m) <- ~eta
regression(m) <- eta ~ x
m0 <- m; regression(m0) <- y2 ~ x
dd <- sim(m0,100)[,manifest(m0)]
e <- estimate(m,dd);
modelsearch(e)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.