fit {gRapHD} | R Documentation |
Calculate -2*log-likelihood, AIC, and BIC for a triangulated graph (decomposable model).
fit(model=NULL, edges=NULL, dataset, homog=TRUE)
model |
gRapHD object. |
edges |
matrix with 2 columns, each row representing one edge, and each column one of the vertices in the edge. |
dataset |
matrix or data frame (nrow(dataset) observations and
ncol(dataset) variables). |
homog |
TRUE if the mixed model is homogeneous. |
Vector with: model dimension (no of free parameters), -2*log-likelihood, AIC, and BIC. Note that all parameters are assumed to be estimable in the dimension calculation.
Gabriel Coelho Goncalves de Abreu (Gabriel.Abreu@agrsci.dk)
Rodrigo Labouriau (Rodrigo.Labouriau@agrsci.dk)
David Edwards (David.Edwards@agrsci.dk)
data(dsCont) m1 <- minForest(dsCont,homog=TRUE,forbEdges=NULL,stat="LR") fit(edges=m1$edges,dataset=dsCont)