enumerate.models {nem}R Documentation

Exhaustive enumeration of models

Description

The function enumerate.models is used to create the model space for inference by exhaustive enumeration. It computes a list of all transitively closed directed graphs on a given number of nodes.

Usage

enumerate.models(n=4,name=letters[1:n],verbose=TRUE) 

Arguments

n number of nodes. Default: 4
name names of nodes. Default: letters[1:n]
verbose output number of (unique) models. Default: TRUE

Details

The model space of Nested Effects Models consists of all transitively closed directed graphs. The function enumerate.models creates them in three steps: (1.) build all directed graphs on n nodes, (2.) transitively close each one of them, and (3.) remove redundant models to yield a unique set.

I'm aware that this is inefficient! It would be very desirable to enumerate the models directly (i.e. without creating all directed graphs as an intermediate step).

Value

a list of models. Each entry is a transitively closed adjacency matrix with unit main diagonal.

Author(s)

Florian Markowetz <URL: http://genomics.princeton.edu/~florian>

See Also

score, nem

Examples

enumerate.models(2,c("Anna","Bert"))

[Package nem version 1.2.0 Index]