graphpcor-class: Set a graph whose nodes and edges represent variables and...

graphpcor-classR Documentation

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

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

Details

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

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'

Examples

g1 <- graphpcor(x ~ y, y ~ v, v ~ z, z ~ x)
g1
summary(g1)
plot(g1)
prec(g1)

graphpcor documentation built on June 8, 2025, 10:37 a.m.