plot_missingness {gmmsslm}R Documentation

Plot Missingness Mechanism and Boxplot

Description

This function plots the smoothed values of '-log(entropy)' against the missingness mechanism and a boxplot of entropy for labeled vs. unlabeled observations.

Usage

plot_missingness(
  dat,
  g,
  parlist,
  zm,
  bandwidth = 5,
  range.x = c(0, 5),
  ylim = NULL,
  kernel = "normal"
)

Arguments

dat

An n\times p matrix where each row represents an individual observation

g

Number of multivariate normal classes.

parlist

A list containing the required parameters (\pi, \mu, \Sigma).

zm

An n-dimensional vector containing the class labels including the missing-label denoted as NA.

bandwidth

Bandwidth for kernel smoothing. Default is 5.

range.x

Range for x values. Default is c(0, 5).

ylim

The y-axis limits in the form of c(ylim[1], ylim[2]). Default is NULL.

kernel

Kernel type for smoothing. Default is 'normal'.

Value

A plot.


[Package gmmsslm version 1.1.5 Index]