fitted.multinethist: Fitted values for a multinethist model

View source: R/fitted_nethist.R

fitted.multinethistR Documentation

Fitted values for a multinethist model

Description

Returns a subarray of the fitted block-probability or graphon matrix for a multinethist object.

Usage

## S3 method for class 'multinethist'
fitted(
  object,
  set1 = NULL,
  set2 = NULL,
  layer = NULL,
  type = "nethist",
  drop = TRUE,
  ...
)

Arguments

object

a multinethist object from multinethist().

set1

integer vector of vertex indices for rows. NULL uses all vertices.

set2

integer vector of vertex indices for columns. NULL uses all vertices.

layer

integer vector of layer indices. NULL uses all layers.

type

one of "nethist" (default) or "prob". "nethist" returns thetahat[,,l] / rho_hat[l] per layer; "prob" returns raw thetahat.

drop

logical. If TRUE (default) and a single layer is selected, the layer dimension is dropped and a matrix is returned. If FALSE, a 3-dimensional array is always returned.

...

currently unused.

Value

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|⁠.

See Also

multinethist(), nethist()

Examples


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)


nethist documentation built on Oct. 25, 2026, 5:07 p.m.