Learn R Programming

VarSelLCM (version 2.1.1)

VarSelImputation: Imputation of missing values

Description

Imputation function based on the mixture model. Two methods can be used: missing values can be imputed by their posterior mean (args "postmean") or by a sampling from their full conditionnal distribution (args "sampling").

Usage

VarSelImputation(obj, method = "postmean")

Arguments

obj

an instance of '>VSLCMresults returned by function VarSelCluster.

method

character definiting the method of imputation: "postmean" or "sampling"

Examples

Run this code
# NOT RUN {
# Data loading
data("heart")
# Clustering en 2 classes
heart[1,1] <- NA
results <- VarSelCluster(heart[,-13], 2)
# Opening Shiny application to easily see the results
VarSelImputation(results)[1,1]
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab