statsmodels.emplike.aft_el.emplikeAFT#
- class statsmodels.emplike.aft_el.emplikeAFT(endog, exog, censors)[source]#
Class for estimating and conducting inference in an AFT model
- Parameters:
- Attributes:
- nobs
float Number of observations
- endog
ndarray Endog array
- exog
ndarray Exogenous variable matrix
- censors
Censors array but sets the max(endog) to uncensored
- nvar
float Number of exogenous variables
- uncens_nobs
float Number of uncensored observations
- uncens_endog
ndarray Uncensored response variables
- uncens_exog
ndarray Exogenous variables of the uncensored observations
- nobs
Methods
fit()Fits an AFT model and returns results instance
predict(params[, endog])Return the linear predictor, params multiplied by endog
Notes
The data is immediately sorted in order of increasing endogenous variables
The last observation is assumed to be uncensored which makes estimation and inference possible.
Methods