Skip to contents

get_pattern() generates a string to represent a response pattern

Usage

get_pattern(data, variables)

Arguments

data

a data frame, where rows = observations, and columns = variables

variables

selected variables to produce a response pattern

Value

mplus_object generated with MplusAutomation

Examples


data_with_pattern <- get_pattern(
data = data_model,
variables  = c('f1','f2','f3','f4','f5','f6')
)
#> Error in data %>% dplyr::select(one_of(variables)) %>% tidyr::unite("pattern",     sep = ".", dplyr::everything()) %>% dplyr::pull(): could not find function "%>%"