suff_stat_NA_pattern.Rd
Computes sufficient statistics for a dataset with an arbitrary missing response pattern.
suff_stat_NA_pattern(dat)
Numeric data frame
A list with following entries
List with number of observations for each missing response pattern
List with mean vectors
List with covariance matrices
List with indices of observed variables
Number of missing data patterns
Total sample size
if (FALSE) {
#############################################################################
# EXAMPLE 1: Toy example for computation of sufficient statistics
#############################################################################
library(STARTS)
data(data.starts01b, package="STARTS")
dat <- data.starts01b
dat1 <- dat[, paste0("E",1:3)]
#-- compute sufficient statistics
res <- LAM::suff_stat_NA_pattern(dat1)
str(res)
}