R/cclcda.formula.R

Defines functions cclcda.formula

Documented in cclcda.formula

###########################################################################
####                         cclcda.formula                            ####
####  ===============================================================  ####
####  - estimation of one Latent-Class-Model                           ####
####  - determination of model selection criteria                      ####
###########################################################################



cclcda.formula <- function(
                         formula,             # formula
                         data,                # data
                         ...
                        )
{

  modelf <- model.frame(formula, data=data)
  grouping <- modelf[,1]
  x <- modelf[,-1]

  cclcda(x, grouping, ...)
}

Try the lcda package in your browser

Any scripts or data that you put into this service are public.

lcda documentation built on March 18, 2022, 5:24 p.m.