Learn R Programming

SSLfmm (version 0.1.0)

Semi-Supervised Learning under a Mixed-Missingness Mechanism in Finite Mixture Models

Description

Implements a semi-supervised learning framework for finite mixture models under a mixed-missingness mechanism. The approach models both missing completely at random (MCAR) and entropy-based missing at random (MAR) processes using a logistic–entropy formulation. Estimation is carried out via an Expectation–-Conditional Maximisation (ECM) algorithm with robust initialisation routines for stable convergence. The methodology relates to the statistical perspective and informative missingness behaviour discussed in Ahfock and McLachlan (2020) and Ahfock and McLachlan (2023) . The package provides functions for data simulation, model estimation, prediction, and theoretical Bayes error evaluation for analysing partially labelled data under a mixed-missingness mechanism.

Copy Link

Version

Install

install.packages('SSLfmm')

Version

0.1.0

License

GPL-3

Maintainer

Jinran Wu

Last Published

December 9th, 2025

Functions in SSLfmm (0.1.0)

unpack_theta

Unpack FMM Parameter Vector
pack_theta

Pack FMM Parameters into a Vector
simulate_mixed_missingness

Simulate a Gaussian Mixture Dataset with a Mixed-Missingness Mechanism (MAR + MCAR)
normalise_logprob

Normalise Log-Probabilities
neg_loglik

Negative Log-Likelihood for Semi-Supervised FMM with a Mixed-Missingness Mechanism
EM_FMM_SemiSupervised_Initial

Quick Initializer for alpha, xi, and Mixture Parameters
EM_FMM_SemiSupervised

EM for Semi-Supervised FMM with a Mixed-Missingness Mechanism (MCAR + entropy-based MAR)
bayesclassifier

Bayes' Rule Classifier
initialestimate

Initialize Parameters for a FMM from Labeled Subset
get_clusterprobs

Posterior Cluster Probabilities for a Gaussian Mixture
get_entropy

Per-Row Entropy of Posterior Cluster Probabilities
EM_FMM_SemiSupervised_Complete_Initial

Complete-Data Warm-Up Initialization for Semi-Supervised FMM with a Mixed-Missingness Mechanism
logsumexp

Numerically Stable Log-Sum-Exp
error_beta_classification

Compute Theoretical Bayes' Error for a Binary Gaussian Mixture
compute_d2

Squared Discriminant Score for Two-Group LDA (Equal Covariance)
rmix

Draw from a Gaussian Mixture Model