Closed andrewraim closed 3 years ago
Copied the corrected predict
functions from master branch to v0.7.1.
i try to use predict() by new data in ZICMP model but have a problem pls help me
My purpose need to make prediction model by train data (80%) and test performance of model predict by test data (20%). Now I'm doing same method ( predict() ) with another count model such as ZIP ZINB but they still work . only ZICMP it doesn't work I don't know why? Thank you so much. train data n = 200 independent variable =7 test data n = 50 independent variable =7
Dear TanasitThai,
Could you supply a minimal working example in plain text rather than screenshots? That will be very helpful to reproduce your issue.
Thanks, Andrew
The ZICMP
predict
function initially had a mistake when support for offsets was added. This mistake is included in version v0.7.0, but has subsequently been fixed in the master branch.Here are steps to reproduce the issue.
This results in the output
Until the corrected code gets released, here is a workaround for the typical case when the user has not opted to use offsets.
If offsets are required, they cannot be specified to
predict
vianewdata
in v0.7.0. Code to work around this is more involved. If anyone urgently needs this, let me know.