Skip to content

pylca #1433

@MPowerCoder

Description

@MPowerCoder

I wanted to run a latent class analysis in python using pylca, I faced the following error.

TypeError Traceback (most recent call last)
Cell In[2], line 7
5 data=np.random.choice([0,1],size=(100,3))
6 df=pd.DataFrame(data,columns=['Q1','Q2','Q3'])
----> 7 model=LCA(n_classes=2)

TypeError: LCA.init() got an unexpected keyword argument 'n_classes'
what to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions