Resources

How can i run this test ?

0

I found this code in the Internet: http://old.cba.ua.edu/assets/docs/jlee/gauss/LS_two.g

If i wanna to apply this in my case:  a .txt file series data with 1 dependable and 3  independable variables

What option i have to change ? And how can i load the data .txt file to GAUUS program ?

asked March 25, 2013

3 Answers

0

You will probably only have to modify these lines:

npanel = 20;

load data[38,21] = gdp.txt;

let name =
    Year  Australia  Austria  Belgium  Canada  Denmark  Finland  France
    Germany  Greece  Iceland  Ireland  Italy  Japan  Netherlands  Norway
    Spain  Sweden  Switzerland  UK  USA;

For example, if you had a text file named mydata.txt with 94 observations, where the first column was the year and then you had 3 more columns of data one for Australia, one for Denmark and one for Iceland, you would change the code to look like this:

npanel = 3;

load data[94,4] = mydata.txt;

let name = Year Australia Denmark Iceland;

The rest of the file should stay the same.

aptech
342
0

I follow your steps but i receive

(0) : error G0121 : Matrix not positive definite
Currently active call: nLMk
Stack trace:
nLMk

Could you give me an illustration  example and show the results if it’s succesfull ?

Thanks for your help

0

The example probably failed because the sample data file did not have enough observations for this program. If you download this data file, example_data.txt and change the lines:

npanel = 20;

load data[38,21] = gdp.txt;

to:

npanel = 3;

load data[38,4] = example_data.txt;

the program should run successfully. I tested it on my machine with no problems.

aptech
342