estimateScoreSBM: Inference of the Score SBM Model

Description Usage Arguments Details Value Examples

View source: R/estimateScoreSBM.R

Description

estimateScoreSBM performs the estimation and model selection for the ScoreSBM model.

Usage

1
2
3
4
5
6
7
8
estimateScoreSBM(
  scoreList,
  directed = FALSE,
  nparm = FALSE,
  kerSigma = NULL,
  estimOptions = list(),
  monitoring = list()
)

Arguments

scoreList

: list of Scores for each dyad of an underlying network

directed

: Boolean. If true the inference network is directed. Default value = FALSE.

nparm

: Boolean. If true then the emission distribution is Non Parametric (Default value FALSE)

kerSigma

: Plug-in bandwidth for non-parametric estimation. If not provided, will be estimated with Hpi (up to six scores). Default value is null

estimOptions

: tunes the optimization process (see details below)

monitoring

: specifies if the lowerBound along the VEM iterations is saved (monitoring = list(lowerBound = TRUE))

Details

The list of parameters estimOptions essentially tunes the optimization process and the variational EM algorithm, with the following parameters

Each element of the output list contains the following quantites:

Value

The output is a list of estimated models, each one corresponding to a number of blocks.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
nbNodes  <- 60
directed <- FALSE
blockProp <- c(1/3,1/2,1/6)
nbBlocks   <- length(blockProp)
connectParam <- matrix(rbeta(nbBlocks^2,1.5,1.5 ),nbBlocks,nbBlocks)
connectParam <- 0.5*(connectParam + t(connectParam))
emissionParam <- list()
nbScores <- 4
emissionParam$noEdgeParam <- list(mean=rep(0,nbScores));
emissionParam$noEdgeParam$var <- diag(0.1,nrow = nbScores,ncol = nbScores)
emissionParam$edgeParam <- list( mean= 1:nbScores)
emissionParam$edgeParam$var <-  diag(0.1,nrow = nbScores,ncol = nbScores)
dataSim <- rScoreSBM(nbNodes,directed = TRUE, blockProp,connectParam,emissionParam,seed = NULL)
scoreList <- dataSim$scoreNetworks
resEstim <- estimateScoreSBM(scoreList,directed)

Sophiedonnet/NoisySBM documentation built on Oct. 20, 2020, 12:04 p.m.