test-edges | R Documentation |
Test edges in graphical models with p-value/AIC
value. The models must be iModel
s.
testEdges(
object,
edgeMAT = NULL,
ingraph = TRUE,
criterion = "aic",
k = 2,
alpha = NULL,
headlong = FALSE,
details = 1,
...
)
testInEdges(
object,
edgeMAT = NULL,
criterion = "aic",
k = 2,
alpha = NULL,
headlong = FALSE,
details = 1,
...
)
testOutEdges(
object,
edgeMAT = NULL,
criterion = "aic",
k = 2,
alpha = NULL,
headlong = FALSE,
details = 1,
...
)
object |
An |
edgeMAT |
A |
ingraph |
If TRUE, edges in graph are tested; if FALSE, edges not in graph are tested. |
criterion |
Either |
k |
Penalty term when |
alpha |
Critical value for deeming an edge to be significant/
insignificant. When |
headlong |
If TRUE then testing will stop once a model improvement has been found. |
details |
Controls the level of printing on the screen. |
... |
Further arguments to be passed on to |
testIn: Function which tests whether each edge in "edgeList" can be delete from model "object"
testOut: Is similar but in the other direction.
A dataframe with test statistics (p-value or change in AIC), edges and logical telling if the edge can be deleted.
Søren Højsgaard, sorenh@math.aau.dk
getEdges
, testadd
,
testdelete
data(math)
cm1 <- cmod(~me:ve + ve:al + al:an, data=math)
testEdges(cm1, ingraph=TRUE)
testEdges(cm1, ingraph=FALSE)
## Same as
# testInEdges(cm1)
# testOutEdges(cm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.