replaceVariables: Replaces variables in a general graph with specified numeric...

Description Usage Arguments Value Author(s) See Also Examples

Description

Given a list of variables and real values a general graph is processed and each variable replaced with the specified numeric value.

Usage

1
replaceVariables(graph, variables = list(), ask = TRUE, partial = FALSE)

Arguments

graph

A graph of class graphMCP or class entangledMCP.

variables

A named list with the specified real values, for example list(a=0.5, b=0.8, "tau"=0.5). If ask=TRUE and this list is missing at all or single variables are missing from the list, the user is asked for the values (if the session is not interactive an error is thrown).

ask

If FALSE all variables that are not specified are not replaced.

partial

IF TRUE only specified variables are replaced and parameter ask is ignored.

Value

A graph or a matrix with variables replaced by the specified numeric values.

Author(s)

Kornelius Rohmeyer rohmeyer@small-projects.de

See Also

graphMCP, entangledMCP

Examples

1
2
3
4
5
6
graph <- HungEtWang2010()
## Not run: 
replaceVariables(graph)

## End(Not run)
replaceVariables(graph, list("tau"=0.5,"omega"=0.5, "nu"=0.5))

gMCP documentation built on May 2, 2019, 6:07 p.m.