This includes work on problem 2. It's getting there, except I think I misspecified something- the logit models are not giving 0<=x<=1 values. Work in progress.