This error message indicates that the input data for the logistic regression model (lognet) contains a class with either one or zero observations. This is not allowed as the model needs at least two observations per class to be able to estimate the parameters.

To fix this error, you need to check your data and make sure that all classes have at least two observations. You may also need to consider removing or combining classes with very few observations.

Error in lognetxd issparse ix jx y weights offset alpha nobs one multinomial or binomial class has 1 or 0 observations; not allowed

原文地址: https://www.cveoy.top/t/topic/ea7h 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录