You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we only observe discretized endog for an underlying continuous distribution, then we can use MLE with the pmf based on the bins, diff(cdf(bin_edges)).
This is relatively easy to do for distributions that have a cdf that is easy to calculate.
From the observed structure it's a discrete distribution, the underlying model is continuous.
I think this could go into statsmodels.discrete. It's very similar to count models, except count models impose/assume non-negativity of the observed endog.
Somewhat related, interval valued data estimators -- for when we observe interval data in a given time period -- are on my radar. A classmate is writing a dissertation in this area.
Time series is one domain and the one I've encountered the most. The idea is just that you have some set of data (initially a range or interval) for each observation. Cf. Billard and Diday.
some random thought on design (related Censored count data in PR #3892, tobit PR )
model needs to define pdf and cdf (or sf),
in __init__ we split data into 4 groups: uncensored, left censored, right censored and interval censored
(splitting the data should avoid that we have to use masks in the optimization loop, i.e. for performance even if it adds code. left and right censored would be interval censored with -inf or +inf as one of the boundaries.) Maybe that's too messy of we need observations in given order (e.g. by time or cluster).
possible solution: implement loglike, score separately from loglikeobs, scoreobs. The former are in the optimization loop, the latter are only in post-estimation.
need general censoring indicator as user specified argument.
loglike and similar can just use the 4 subdatasets if they are not None.
another mess: pdf, cdf could take linpred or mu as in GLM, but then we still need extra_params for models with auxiliary or shape parameters (scale, dispersion in normal or negative binomial)
OrderedModel #7035 cumulative link model estimation is based on the discretized latent variable.
However, interval bounds, cut points, are estimated and not fixed as prior info.
Activity
jseabold commentedon Feb 14, 2013
Somewhat related, interval valued data estimators -- for when we observe interval data in a given time period -- are on my radar. A classmate is writing a dissertation in this area.
josef-pkt commentedon Feb 14, 2013
Is that time series with discrete data?
jseabold commentedon Feb 14, 2013
Time series is one domain and the one I've encountered the most. The idea is just that you have some set of data (initially a range or interval) for each observation. Cf. Billard and Diday.
josef-pkt commentedon Sep 3, 2017
some random thought on design (related Censored count data in PR #3892, tobit PR )
__init__we split data into 4 groups: uncensored, left censored, right censored and interval censored(splitting the data should avoid that we have to use masks in the optimization loop, i.e. for performance even if it adds code. left and right censored would be interval censored with -inf or +inf as one of the boundaries.) Maybe that's too messy of we need observations in given order (e.g. by time or cluster).
possible solution: implement loglike, score separately from loglikeobs, scoreobs. The former are in the optimization loop, the latter are only in post-estimation.
loglike and similar can just use the 4 subdatasets if they are not None.
another mess: pdf, cdf could take linpred or mu as in GLM, but then we still need extra_params for models with auxiliary or shape parameters (scale, dispersion in normal or negative binomial)
josef-pkt commentedon Oct 4, 2020
OrderedModel #7035 cumulative link model estimation is based on the discretized latent variable.
However, interval bounds, cut points, are estimated and not fixed as prior info.