Program command in the Rats: 

All 5 15
Open data c:\1225\1225.wk1
data(format=wks,org=obs) / y x

****Part A solution****

Linreg y / resid1
# constant x

****Part C solution****
****2****

Linreg y /
# constant x{0 to 1} y{1}

****3****

Linreg y / resid1
# constant x

Linreg resid1 /
# constant resid1{1}

****Part D solution****

Set ystar = y - ( 0.79265 * y{1} )
Set xstar = x - ( 0.79265 * x{1} )

Linreg ystar /
# constant xstar

End

And then click here for the results

back to mainpage