Set a graph whose nodes and edges represent variables and conditional distributions, respectively.
# S3 method for formula
graphpcor(...)# S3 method for matrix
graphpcor(...)
# S3 method for graphpcor
print(x, ...)
# S3 method for graphpcor
summary(object, ...)
# S3 method for graphpcor
dim(x, ...)
# S4 method for graphpcor
edges(object, which, ...)
# S4 method for graphpcor,ANY
plot(x, y, ...)
# S3 method for graphpcor
Laplacian(graph)
# S4 method for graphpcor
chol(x, ...)
# S4 method for graphpcor
vcov(object, ...)
# S3 method for graphpcor
prec(model, ...)
list of formula used to define the edges.
a graphpcor object
graphpcor object
not used
graphpcor
graphpcor object, see graphpcor.
graphpcor model object
edges(graphpcor): Extract the edges of a graphcor to be used for plot
plot(x = graphpcor, y = ANY): The plot method for graphpcor
chol(graphpcor): Build the unite diagonal lower triangle matrix
vcov(graphpcor): The vcov method for a graphpcor
graphpcor(formula): A graphpcor is a graph where a node represents
a variable and an edge a conditional distribution.
graphpcor(matrix): Build a graphpcor from a matrix
print(graphpcor): The print method for graphpcor
summary(graphpcor): The summary method for graphpcor
dim(graphpcor): The dim method for graphpcor
Laplacian(graphpcor): The Laplacian method for a graphpcor
prec(graphpcor): The precision method for 'graphpcor'
The terms in the formula do represent the nodes.
The ~ is taken as link.
g1 <- graphpcor(x ~ y, y ~ v, v ~ z, z ~ x)
g1
summary(g1)
plot(g1)
prec(g1)
Run the code above in your browser using DataLab