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.
Allin