GrossSBM / missSBM

An R package for adjusting Stochastic Block Models from networks data sampled under various missing data conditions
http://grosssbm.github.io/missSBM
GNU General Public License v3.0
12 stars 2 forks source link

MAR case: perform optimization only on observed values #23

Open jchiquet opened 5 years ago

jchiquet commented 5 years ago

At this stage of the development, we perform imputation even in the MAR case to keep the same framework, whatever the underlying sampling process (MAR or NMAR).

Not only it would save some time to eprform the inference only on the observed part of the surrogate loglikelihood, but it would also be more correct in the LMAR case with covariates.

I will create a branch for that, as it changes a bit the interface with the C++ code and also the structure of the R6 object. A elegant solution would be to handle NA in the C++, by only looping over the no-NA value of the network adjacency matrix.