Am 24.05.2013 22:39, schrieb Allin Cottrell:
yOn Fri, 24 May 2013, Sven Schreiber wrote:
> I tried to wrap this long line:
>
> c3 = sum(diag((((I(rows(P))-P)*Vpsi)**P)/(I(rows(P)^2)-P**P))) +
> sum(diag((P/(I(rows(P))+P))*Vpsi))
>
> at the + sign like this:
>
> c3 = sum(diag((((I(rows(P))-P)*Vpsi)**P)/(I(rows(P)^2)-P**P))) \
> + sum(diag((P/(I(rows(P))+P))*Vpsi))
>
> but gretl gave me a syntax error (within a function package), and I
> don't really understand why. A bug?
Possibly, but your use of of sum() is definitely invalid. This
function requires a series or list argument, as per the
documentation.
Actually I didn't write this line, but thanks for pointing this out --
then I guess the question is why is gretl NOT complaining without the
line wrapping?
-sven