nestorFit: Core function of nestorFit

Description Usage Arguments Value Examples

View source: R/Infer.R

Description

Core function of nestorFit

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
nestorFit(
  MO,
  SO,
  initList,
  maxIter = 20,
  eps = 0.01,
  alpha = 0.1,
  verbatim = 1,
  print.hist = FALSE,
  trackJ = FALSE
)

Arguments

MO

Estimated means from norm_PLN.

SO

Estimated marginal vairances from norm_PLN.

initList

Result list from initVEM.

maxIter

Maximal number of iterations.

eps

Convergence precision parameter.

alpha

Tempering parameter, default to 0.1.

verbatim

Integer controlling verbosity in three levels, starting at 0.

print.hist

Prints edges weights histograms at each step if TRUE.

trackJ

Computes the lower bound at each parameter update if TRUE. Otherwise, the lower bound is only computed at each new VE step.

Value

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data=generate_missing_data(n=100,p=10,r=1,type="scale-free", plot=FALSE)
PLNfit<-norm_PLN(data$Y)
MO<-PLNfit$MO
SO<-PLNfit$SO
sigma_O=PLNfit$sigma_O
#-- initialize with true clique for example
initClique=data$TC
#-- initialize the VEM
initList=initVEM(cliqueList=initClique,sigma_O, MO,r=1 )
#-- run core function nestorFit
fit=nestorFit( MO,SO, initList=initList, maxIter=5,verbatim=1)
str(fit)

Rmomal/nestor documentation built on Dec. 16, 2020, 7:54 p.m.