Learn R Programming

graphpcor (version 0.1.12)

graphpcor-class: Set a graph whose nodes and edges represent variables and conditional distributions, respectively.

Description

Set a graph whose nodes and edges represent variables and conditional distributions, respectively.

Usage

# 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, ...)

Arguments

...

list of formula used to define the edges.

x

a graphpcor object

object

graphpcor object

which

not used

y

graphpcor

graph

graphpcor object, see graphpcor.

model

graphpcor model object

Methods (by generic)

  • 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

Functions

  • 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'

Details

The terms in the formula do represent the nodes. The ~ is taken as link.

Examples

Run this code
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