View source: R/fitted_nethist.R
| fitted.nethist | R Documentation |
Returns a submatrix of the fitted block-probability or graphon matrix
for a nethist or hnethist object.
## S3 method for class 'nethist'
fitted(object, set1 = NULL, set2 = NULL, type = "nethist", ...)
object |
a |
set1 |
integer vector of vertex indices for rows. |
set2 |
integer vector of vertex indices for columns. |
type |
one of |
... |
currently unused. |
A numeric matrix of dimension |set1| x |set2|.
nethist(), hnethist(), multinethist()
set.seed(1)
A <- igraph::as_adjacency_matrix(
igraph::sample_gnp(60, 0.3), sparse = FALSE)
fit <- nethist(A, h = 10L)
fitted(fit, set1 = 1:10, set2 = 1:10)
fitted(fit, type = "prob")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.