[Gretl-users] String and Scalar Error
cottrell at wfu.edu
Thu Aug 22 12:24:12 EDT 2013
On Tue, 20 Aug 2013, Henrique wrote:
> I'm getting an error message when I try to run that script using
> the latest snapshot:
> nulldata 200
> setobs 12 2000:01 --time-series
> string data_1o_lim_sup = "2010:02"
> string data_2o_lim_sup = "2013:7"
> scalar n_exec = @data_2o_lim_sup - @data_1o_lim_sup + 1
> The message is: "Data types not conformable for operation".
That's expected. There was a discussion of this not long ago (sorry,
don't have the reference to hand). We're no longer accepting
strings such as "2010:02" as if they were proper scalar values. You
need to use the obsnum() function.
More information about the Gretl-users