Learn R Programming

gRapfa (version 1.0)

add.stats: Add attributes to an APFA

Description

Adds edge probabilities, log-likelihood and dimension to an APFA igraph object.

Usage

add.stats(G)

Arguments

G
G: An APFA object

Value

The input APFA with additional attributes - edge probabilities, log-likelihood and dimension.

Examples

Run this code
library(gRapfa)
data(Wheeze)
G <- st(Wheeze)
G.as1 <- add.stats(G)
G.c <- contract.last.level(G)
G.as2 <- add.stats(G.c)

Run the code above in your browser using DataLab