On Fri, 26 Oct 2012, Henrique Andrade wrote: > I think I found a possible error using the > "pca" command. Please take a look at the > following code: > > <hansl> > open australia.gdt > pca PAU PUS E --save-all > # It saves all the components > > clear > open australia.gdt > pca PAU PUS E --save[1] > # It saves only the first component > > clear > open australia.gdt > pca PAU PUS E --save[2] > # It was supposed to save only the second > # component, but Gretl saves only the first
You should actually be getting an error message for this (I'll fix that when I can). The syntax is supposed to be pca PAU PUS E --save=1 pca PAU PUS E --save=2 and so on. The "[" and "]" in the help for pca are just indicating an optional addition, and they should not be typed; but the equals sign is required if a number is given. In addition you're misreading the intended effect of --save=n. Here's the help text: "If you provide a value for n with this option then the most important n components are saved." This means that --save=2 will save the first two components, not just the second one. Allin Cottrell
