mnlfa_expand_to_list.Rd
Expands an input into a list.
mnlfa_expand_to_list(x, names_list)
An R object
Names of the list
A list
#############################################################################
# EXAMPLE 1: Test example
#############################################################################
formula_int <- ~1+female+age
items <- paste0("I",1:12)
formula_int <- mnlfa::mnlfa_expand_to_list(x=formula_int, names_list=items)
formula_int[[1]] <- ~0 # modify model for first item