model_utilities.py
def combineModels(model1, model2, label, same_indices):
    """Combines the labels of two model inplace.

    Parameters
    ----------
    model1 : mplus model object

    model2 : mplus model object

    label : string for the combined model parts

    same_indices : list of ints
    """

    for i, index in enumerate(same_indices):

        model1.labels[index] = label + str(i)
        model2.labels[index] = label + str(i)
Combines the labels of two model inplace.

    Parameters
    ----------
    model1 : mplus model object

    model2 : mplus model object

    label : string for the combined model parts

    same_indices : list of ints
    
Combines the labels of two model inplace.
Parameters

model1 : mplus model object

model2 : mplus model object

label : string for the combined model parts

same_indices : list of ints
Combines the labels of two model inplace . Parameters model1 : mplus model object model2 : mplus model object label : string for the combined model parts same_indices : list of ints
def combineModels(model1, model2, label, same_indices):
    for i, index in enumerate(same_indices):
        model1.labels[index] = label + str(i)
        model2.labels[index] = label + str(i)
def combineModels ( model1 , model2 , label , same_indices ) : for i , index in enumerate ( same_indices ) : model1 . labels [ index ] = label + str ( i ) model2 . labels [ index ] = label + str ( i )
Combines the labels of two model inplace.
Combines the labels of two model inplace .
"""Combines the labels of two model inplace.

    Parameters
    ----------
    model1 : mplus model object

    model2 : mplus model object

    label : string for the combined model parts

    same_indices : list of ints
    """
model1
model2
label
same_indices