Description Usage Arguments Details Value Author(s) References Examples
Returns the formula of the model.
1 | modelFormula(model)
|
model |
gRapHD class. |
See Lauritzen (1996), pages 202-203, and 215-216 for more details.
List with the generators of the model:
discrete |
terms (d,\emptyset) |
linear |
terms (d,γ^2) |
quadratic |
terms (d,γ) and (d,\{γ,μ\}) |
quadratic2 |
terms (d,c^2) |
Gabriel Coelho Goncalves de Abreu (abreu_ga@yahoo.com.br)
Lauritzen, S.L. (1996) Graphical Models, Oxford University Press.
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | data(dsMixed)
m <- minForest(dsMixed,homog=TRUE,stat="LR")
modelFormula(m)
# str(modelFormula(m))
#List of 4
# $ discrete :List of 4
# ..$ : int [1:2] 1 3
# ..$ : int [1:2] 3 4
# ..$ : int [1:2] 3 5
# ..$ : int [1:2] 5 2
# $ linear : list()
# $ quadratic :List of 5
# ..$ : num [1:2] 5 8
# ..$ : num [1:2] 5 9
# ..$ : num [1:2] 4 11
# ..$ : num [1:2] 5 14
# ..$ : num [1:2] 2 15
# $ quadratic2:List of 6
# ..$ : num [1:2] 6 11
# ..$ : num [1:2] 7 8
# ..$ : num [1:2] 9 10
# ..$ : num [1:2] 9 13
# ..$ : num [1:2] 12 15
# ..$ : num 14
m <- minForest(dsMixed,homog=FALSE,stat="LR")
str(modelFormula(m))
#List of 4
# $ discrete :List of 4
# ..$ : int [1:2] 1 3
# ..$ : int [1:2] 3 4
# ..$ : int [1:2] 3 5
# ..$ : int [1:2] 5 2
# $ linear :List of 10
# ..$ : num [1:2] 2 6
# ..$ : num [1:2] 5 7
# ..$ : num [1:2] 5 8
# ..$ : num [1:2] 5 9
# ..$ : num [1:2] 5 10
# ..$ : num [1:2] 2 11
# ..$ : num [1:2] 3 12
# ..$ : num [1:2] 2 13
# ..$ : num [1:2] 5 14
# ..$ : num [1:2] 2 15
# $ quadratic : list()
# $ quadratic2: list()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.