fitUG | R Documentation |
Fit discrete data to the Markov structure implied by an undirected graph.
fitUG(dat, graph, tol = sqrt(.Machine$double.eps), SEs = TRUE, quietly = TRUE)
dat |
The data, as an array of counts or a data frame whose final column contains the counts. |
graph |
An ADMG, as an object of class |
tol |
Numeric; if log-likelihood increases by less that |
SEs |
logical: should standard errors be calculated? |
quietly |
Logical indicating whether output should be suppressed. |
An object of class u_fit
. This is a list containing
(amongst other things):
ll |
Value of the log-likelihood at the maximum. |
For the algorithm to be guaranteed to work correctly, all counts for marginal tables consisting of cliques and their parents should be positive. A warning will be produced if this is not so.
Robin Evans
Lauritzen (1996), Graphical Models, OUP.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.