graphpcor-class | R Documentation |
Set a graph whose nodes and edges represent variables and conditional distributions, respectively.
## S3 method for class 'formula'
graphpcor(...)
## S3 method for class 'matrix'
graphpcor(...)
## S3 method for class 'graphpcor'
print(x, ...)
## S3 method for class 'graphpcor'
summary(object, ...)
## S3 method for class 'graphpcor'
dim(x, ...)
## S4 method for signature 'graphpcor'
edges(object, which, ...)
## S4 method for signature 'graphpcor,ANY'
plot(x, y, ...)
## S3 method for class 'graphpcor'
Laplacian(graph)
## S4 method for signature 'graphpcor'
chol(x, ...)
## S4 method for signature 'graphpcor'
vcov(object, ...)
## S3 method for class 'graphpcor'
prec(model, ...)
... |
list of formula used to define the edges. |
x |
a |
object |
graphpcor object |
which |
not used |
y |
graphpcor |
graph |
graphpcor object, see |
model |
graphpcor model object |
The terms in the formula do represent the nodes.
The ~
is taken as link.
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'
g1 <- graphpcor(x ~ y, y ~ v, v ~ z, z ~ x)
g1
summary(g1)
plot(g1)
prec(g1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.