We mentioned fitting distributions last week. Here is some code I've written to fit a censored distribtution, via maximum likelihood estimation.