On Sat, 9 Jan 2010, Daniel wrote:
I'm new user of Gretl and I want to perform some OLS for
restricting for each electoral districts. However, when I tryed
do it, some thing reported wrong in my command program.
Tell us what error message you saw: "something reported wrong" is
very vague.
In addiction I need to store b`s and do a estimators table.
"Store b's":
matrix b = $coeff
smpl t=2006 && ip="Senator" &&
j="SP" ols vote const revenue
* You can only give one command per line; "smpl" and "ols" are
distinct commands.
* Please read the help for "smpl", it looks as if you need the
--restrict option for what you want.
* ip="Senator" && j="SP": gretl does not support series
variables
with string values. If you loaded data with string values from a
third-party file, gretl will have written a "string table" giving
the mapping from values such as "Senator" and "IP" to numerical
codes, and it's the numerical codes that you must use. A correct
command _might_ look something like the following, depending on
how your variables are defined:
smpl (t=2006 && ip=2 && j=3) --restrict
ols vote const revenue
Allin Cottrell