error message using "indices"

Hi,

I'm trying to use GAUSS dat file and opened the data using "OPEN dataset = testout" dataset variable is 1 which means the data is open to my understanding. However, when I try to use "indices", I get an error message "Can't open file."

The exact code is:

{ pointer,_po } = indices(dataset,"caseid");

I created the data file myself and failed. So I also used someone else's code that was published by the author. But it did not work. Is there anything I can fix?

1 Answer



0



The first input to the indices function is a string data set name. For example, change your GAUSS working directory to the GAUSS examples directory and enter this:

{ var_names, idx } = indices("freqdata.dat", "PAY");

The above code will return the index of the PAY variable in the freqdata example dataset, which is 2.

aptech

1,773

Your Answer

1 Answer

0

The first input to the indices function is a string data set name. For example, change your GAUSS working directory to the GAUSS examples directory and enter this:

{ var_names, idx } = indices("freqdata.dat", "PAY");

The above code will return the index of the PAY variable in the freqdata example dataset, which is 2.


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.