Sklearn regression with clustered data

Viewed 371

I'm trying to run a multinomial LogisticRegression in sklearn with a clustered dataset (that is, there are more than 1 observations for each individual, where only some features change and others remain constant per individual).

I am aware in statsmodels it is possible to account for this the following way:

mnl = MNLogit(x,y).fit(cov_type="cluster", cov_kwds={"groups": cluster_groups)

Is there a way to replicate this with the sklearn package instead?

1 Answers
Related