Similarly, gretl can be used to produce predictions. The predicted food expenditure of an average household having weekly income of $2000 is:

foodTexpt = 83.42 + 10.21incomet = 83.42 + 10.21(20) = 287.61 (2.5)

Remember, income is measured in $100, so 20 in the above expression represents 20*$100=$2,000. The gretl script is:

scalar yhat = $coeff(const) + $coeff(income)*20

which yields the desired result.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>