as.ghype: Map list to ghype object

View source: R/ghype.R

as.ghypeR Documentation

Map list to ghype object

Description

Manually map a list to a ghype object

Usage

as.ghype(object, ...)

## S3 method for class 'list'
as.ghype(object, ...)

## S3 method for class 'nrm'
as.ghype(object, ...)

Arguments

object

list object to map to ghype.

...

additional arguments to be passed to logl function.

Value

an object of class "ghype"

Methods (by class)

  • as.ghype(list): Map list to ghype

  • as.ghype(nrm): Map list to ghype

Examples

ll <- list(call = NULL, 'adj' = NULL, 'xi'= matrix(36,4,4), 'omega' = matrix(1,4,4), 
     'n' = 4, 'm' = 12, 'directed' = TRUE, 'selfloops' = TRUE,
     'regular' = TRUE, 'unbiased' = TRUE, 'df' = 1)
model <- as.ghype(ll)


gi0na/r-ghypernet documentation built on April 13, 2024, 9:30 a.m.