Description Usage Arguments Value
View source: R/ludwig_functions.R
The main purpose of this function is to create
a predictor matrix (predict_matrix
) and a vector of observed states
(y
) for each node
so that the network parameters are estimable using simple
multivariate logistic regression based on the conditional distributions
of each node given the rest of the network. This method is also
known as the pseudolikelihood method, supposedly first introduced by Besag (1975).
Note that the speed of this function is improvable.
1 |
data |
a binary data matrix containing observed network states. The rows represent the states, the columns represent the nodes. |
A list containing...
data
the original data matrix.
predict_matrix
the predictor matrix.
y
a vector of the observed node states.
n
the number of observed state vectors.
k
the number of nodes.
n_links
the number of links in the network.
n_param
the number of parameters to be estimated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.