All units are in the data. Outcome is known to be above/below a limit for censored observations, but exact value is unknown. Solution: Tobit.
Some units are entirely absent from the sample. The analyst never sees them. Solution: truncated regression (MLE on the truncated normal distribution).
tobit: Tobit MLE. margins: compute any of the three marginal effects.heckman: Heckman two-step and MLE. twostep option for the two-step estimator.stset + stcox: Cox proportional hazard model.tobit() in AER, censReg() in censReg.heckit() in sampleSelection for Heckman two-step.coxph() in survival for duration models.