View source: R/fitted_nethist.R
| fitted.multinethist | R Documentation |
Returns a subarray of the fitted block-probability or graphon matrix
for a multinethist object.
## S3 method for class 'multinethist'
fitted(
object,
set1 = NULL,
set2 = NULL,
layer = NULL,
type = "nethist",
drop = TRUE,
...
)
object |
a |
set1 |
integer vector of vertex indices for rows. |
set2 |
integer vector of vertex indices for columns. |
layer |
integer vector of layer indices. |
type |
one of |
drop |
logical. If |
... |
currently unused. |
A numeric matrix of dimension |set1| x |set2| when a single
layer is selected and drop = TRUE, otherwise a 3-dimensional array of
dimension |set1| x |set2| x |layer|.
multinethist(), nethist()
data(IndianVil)
fit <- multinethist(IndianVil, h = 20L)
fitted(fit, set1 = 1:10, set2 = 1:10, layer = 1)
fitted(fit, layer = c(1, 2), drop = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.