Learn R Programming

gremes (version 0.1.1)

HRMBG: Object of class HRMBG

Description

It creates an object with two slots: $graph containing the graph and $depParams containing the edge weights which are initialized with zero values. It is intended to be used for estimation of edge weights of models on block graphs. Consult Vignettes "Code - Note 5" and "Estimation - Note 5".

Usage

HRMBG(g)

Value

Object of class HRMBG with two slots: $graph containing the graph and $depParams

containing the edge weights corresponding to the dependence parameters. Ig the graph which is passed in the argument has named edges these names are kept, if the edges are not named, they are given names "e1", "e2", etc. if the graph

Arguments

g

must be an igraph object

Examples

Run this code
g<- graph(c("a","b", "b","c", "b", "d"), directed=FALSE)
hrmbg<- HRMBG(g)

Run the code above in your browser using DataLab