Em 18 de janeiro de 2011 Riccardo (Jack) Lucchetti
<r.lucchetti(a)univpm.it>escreveu:

On Tue, 18 Jan 2011, Henrique Andrade wrote:
>
>  I'm trying to use R inside a Gretl script in order to perform the
>> Phillips-Perron test. Please take a look at my
>> script:
>>
>> open australia.gdt
>> foreign language=R
>>     testedvar <- gretldata[,"lpau"]
>>     PP.test(testedvar)
>> end foreign
>>
>> With this script I've got the following error:
>>
>> Error executing script: halting
>> > end foreign
>>
>> Does anyone has a clue for what's going wrong?
>>
>
> You need to use the "--send-data" option, as in
>
> foreign language=R --send-data
>

Dear Riccardo, thanks for your answer, but the "--send-data" option didn't
fix my problem :( The only way to circumvent this is to choose the
"Interactive R session" and enter the R commands manually.

Best,
Henrique


-- 
*Henrique C. de Andrade*
Doutorando em Economia Aplicada
Universidade Federal do Rio Grande do Sul
www.ufrgs.br/ppge
Em 18 de janeiro de 2011 Riccardo (Jack) Lucchetti <r.lucche...@univpm.it> escreveu:

On Tue, 18 Jan 2011, Henrique Andrade wrote:

I'm trying to use R inside a Gretl script in order to perform the Phillips-Perron test. Please take a look at my
script:

open australia.gdt
foreign language=R
    testedvar <- gretldata[,"lpau"]
    PP.test(testedvar)
end foreign

With this script I've got the following error:

Error executing script: halting
> end foreign

Does anyone has a clue for what's going wrong?

You need to use the "--send-data" option, as in

foreign language=R --send-data

Dear Riccardo, thanks for your answer, but the "--send-data" option didn't fix my problem :( The only way to circumvent this is to choose the "Interactive R session" and enter the R commands manually.

Best,
Henrique


--
Henrique C. de Andrade
Doutorando em Economia Aplicada
Universidade Federal do Rio Grande do Sul
www.ufrgs.br/ppge

Reply via email to