/* SERIESDT.G: creates data matrix for series estimators of choice probabilities. John Rust, Universit of Maryland, October 2006 */ proc (1)=seriesdt(y,x_a,x_b); retp(y~ones(rows(x_a),1)~x_a~x_b~x_a.*x_b~x_a^2~x_b^2); endp;