G0064 : Operand missing in qz

library pgraph;
et1 = hsec;
/* Read data */
/* 1st column: dlng */
/* 2nd column: dlne */
load mx[60,2]=C:\gausslt16\nonlinear.txt;
/* To test nonparametric Granger causality from dlne to dlng, */
/* set x=mx[.,1] and w=mx[.,2]. To test the reverse causality, */
/* swap both series; set x=mx[.,2] and w=mx[.,1]. */
x=mx[.,2];
w=mx[.,1];
x=x-meanc(x);
w=w-meanc(w);
n=rows(x)-1;
kt=8; /* number of basis */
h1=7.3*n^(-0.3);
h2=5.6*n^(-0.3);

kernelx=zeros(n,n);
weight=zeros(kt,1);
qz=zeros(n,kt);
for i (1, kt, 1);
    weight[i,1]=0.9^i;
endfor;/* Set Up Basis Functions */
qz1 = sin(w)~cos(w);
qz2=sin(w).*sin(x)~sin(w).*cos(x)~cos(w).*sin(x)~cos(w).*cos(x)~sin(2*w)~cos(2*w);
qz=qz1~qz2;
G0064 : Operand missing in qz

Thanks,

1 Answer

0

The problem is that qz is now a function in GAUSS. So you cannot have a variable named qz.

You need to change the references to qz in the file to something else such as qz_.


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 30 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy