log using c:\spmstarxt.smcl , replace clear all sysuse spmstarxt.dta, clear spmstarxt y x1 x2 , wmfile(SPWmstarxt1) wmat(W1) eigw(eW1) id(7) nwmat(1) predict(Yh) spmstarxt y x1 x2 , wmfile(SPWmstarxt2) wmat(W2) eigw(eW2) id(7) nwmat(2) predict(Yh) spmstarxt y x1 x2 , wmfile(SPWmstarxt3) wmat(W3) eigw(eW3) id(7) nwmat(3) predict(Yh) spmstarxt y x1 x2 , wmfile(SPWmstarxt4) wmat(W4) eigw(eW4) id(7) nwmat(4) predict(Yh) log close