Hi
Am 30.05.2022 03:26 schrieb Fred Engst:
1 As I was trying to create a model using a script, I came across
this
strange error.
Using the wage1 dataset, if I do the following script to create an
icon of a model, it gives me an error:
gretl version 2022b-git
Current session: 2022-05-30 09:04
? list basic = educ exper tenure female married smsa trade services
profocc
Replaced list basic
? "basic" <- ols lwage 0 basic --robust
> "basic" <- ols
The symbol 'ols' is undefined
Data error
Error executing script: halting
> "basic" <- ols lwage 0 basic --robust
If instead, I change the model name to “basic1” for example, there is
no problem.
In the icon view, I can change the model icon name from “basic1" to
“basic” no problem either.
This first problem is due to the fact that you've created a list named
"basic" first, before you want to create a model object with the same
name. Naming the list and model differently, works then. See here:
Try this:
<hansl>
clear
open wage1
list basic = educ exper tenure female married smsa trade services
profocc
"base_model" <- ols lwage 0 basic --robust
</hansl>
However, I agree that the error message could be more useful.
Artur