* * Example 4.2 from pp 124-125 * open data meap93.raw data(format=free,org=columns) 1 408 lnchprg enroll staff expend salary benefits droprate gradrate $ math10 sci11 totcomp ltotcomp lexpend lenroll lstaff bensal lsalary * linreg math10 # constant totcomp staff enroll * * Again, divide the cited significance level by two to convert to a one-tailed * test; that converts 0.35920066 to roughly .18 * * Although the logged data are provided on the data set, this shows how to create * them if you only have data on levels. * set ltotcomp = log(totcomp) set lstaff = log(staff) set lenroll = log(enroll) * linreg math10 # constant ltotcomp lstaff lenroll