* E435 computer assignment # 7 - first part set nocolor file 11 b:data7-12.dat read(11) price hatch wbase length width height & weight cyl litres gasmpg trans ols price weight cyl litres/resid=r diagnos/het * Instruction 2 genr pdbw=price/weight genr cdbw=cyl/weight genr ldbw=litres/weight genr rw=1/weight * Note the intercept is the coefficient of WEIGHT * and the coefficient of rw is the intercept ols pdbw cdbw ldbw rw diagnos/het * Instruction 3 genr lr2=log(r**2) genr lweight=log(weight) ols lr2 lweight pause * Slope coefficient in previous = 7 genr pdbw3=price/(weight**3.5) genr cdbw3=cyl/(weight**3.5) genr ldbw3=litres/(weight**3.5) genr wdbw3=weight/(weight**3.5) genr rw3=1/(weight**3.5) ols pdbw3 cdbw3 ldbw3 wdbw3 rw3/noconstant * Doing above with the WEIGHT= option genr wt=1/(weight**7) ols price weight cyl litres/weight=wt