lod531 / regPyHDFE

MIT License
4 stars 1 forks source link

get error code when using result.summary() #1

Closed chenkuangqi closed 1 year ago

chenkuangqi commented 1 year ago

developed 2 cluster_ids, get

IndexError:: boolean index did not match indexed array along dimension 1; dimension is 1 but corresponding boolean dimension is 2

when running: line 172:in_cluster = (ID==c_list[c])

lod531 commented 1 year ago

Hey, You should try using https://github.com/lod531/FixedEffectModel It's basically a better version of this repo

chenkuangqi commented 1 year ago

Thank you so much for your quick reply! Do you know if there is any package support weight function as in Stata?

lod531 commented 1 year ago

Hmm, sorry I wrote this two years ago, so I can't say. I'd check out https://github.com/ksecology/FixedEffectModel which is what I forked forever ago - at the time they seemed to have one of the better implementations, so the functionality might be there

chenkuangqi commented 1 year ago

Thank you so much. I really appreciate your help.

lod531 commented 1 year ago

Haha, sorry I couldn't be of more use. Good luck!