CluMP_profiles

0th

Percentile

Summary characteristics of identified clusters via CluMP

The function CluMP_profiles provides a description (profile) for each cluster. The description is in the form of a summary list containing descriptive statistics of a cluster variable, time variable, cluster parameters and other variables (covariates), both continuous and categorical.

Keywords
CluMP
Usage
CluMP_profiles(CluMPoutput, cont_vars = NULL, cat_vars = NULL,
  show_NA = FALSE)
Arguments
CluMPoutput

An object (output) from the CluMP function.

cont_vars

An optional single character or a character vector of continuous variables' names (from the original dataset).

cat_vars

An optional single character or a character vector of categorical variables' names (from the original dataset).

show_NA

Logical scalar. Should be calculated and shown descriptive statistics for NA cluster if exists? Default is FALSE. NA cluster gathers improper individuals (trajectories with < 3 not missing observations) for longitudinal clustering.

Value

Returns a list with cluster variable (Y) summary, both baseline and changes; time and a summary of the number of observations (visits); clustering parameters summary and optional continuous variables summary (baseline and changes) and categorical variables summary (baseline and end).

Aliases
  • CluMP_profiles
Examples
# NOT RUN {
dataMale <- GeneratePanel(n = 50, Param = ParamLinear, NbVisit = 10)
dataMale$Gender <- "M"
dataFemale <- GeneratePanel(n = 50, Param = ParamLinear, NbVisit = 10)
dataFemale$ID <- dataFemale$ID + 50
dataFemale$Gender <- "F"
data <- rbind(dataMale, dataFemale)

CLUMP3 <- CluMP(formula = Y ~ Time, group = "ID", data = data, cl_numb = 3)
CluMP_profiles(CLUMP3, cat_vars = "Gender")

# }
Documentation reproduced from package CluMP, version 0.7, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.