Description Usage Arguments Value
fitNetwork initializes a graph into a signalgraph then fits the model with penalized least squares. fit_initialized_sg fits an network already initialized by initializeGraph. fit_initialized_sg is called by fitNetwork.
1 2 3 4 5 | fitNetwork(g, data, fixed = NULL, graph_attr = list(L2_pen = 0.04),
min.iter = 2, max.iter = 5, epsilon = 1e-04, verbose = FALSE)
fit_initialized_sg(g, min.iter = 2, max.iter = 5, epsilon = 1e-04,
verbose = FALSE)
|
g |
igraph object. The vertices must be named. |
data |
a data frame. All of the names in the data from must match a vertex name. |
fixed |
names of fixed variables in the vertices |
graph_attr |
list of graph attributes. Graph attributes include:
|
min.iter |
minimum number of iterations |
max.iter |
maximum number of iterations |
epsilon |
after the minimum number of iterations, when change in means squared error between iterations falls below epsilon, cease optimizing and return current estimates |
verbose |
if set to true, prints messages of details of optimization. |
A fitted signalgraph object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.