[R] simulating a VARXls model using dse

Alison Callahan alison.callahan at gmail.com
Mon Apr 4 17:16:46 CEST 2011


Hi Paul,

I am using R v. 2.12.2, and the "dse" package with build 2.12.2.

I have attached some sample data to this email, and the R code I use
to create the model and then forecast with it.

Thanks,

Alison

On Mon, Apr 4, 2011 at 11:02 AM, Paul Gilbert
<pgilbert at bank-banque-canada.ca> wrote:
> Could you please send me a reproducible example, and R and dse version info.
>
> Thanks,
> Paul
>
>> -----Original Message-----
>> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
>> project.org] On Behalf Of Alison Callahan
>> Sent: April 4, 2011 10:56 AM
>> To: r-help at r-project.org
>> Subject: [R] simulating a VARXls model using dse
>>
>> Hello,
>>
>> Using the dse package I have estimated a VAR model using estVARXls().
>> I can perform forecasts using forecast() with no problems, but when I
>> try to use simulate() with the same model, I get the following error:
>>
>> Error in diag(Cov, p) :
>>   'nrow' or 'ncol' cannot be specified when 'x' is a matrix
>>
>> Can anyone shed some light on the meaning of this error? How can I
>> simulate output using a model created with estVARXls()?
>>
>> Thanks,
>>
>> Alison
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-
>> guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> ====================================================================================
>
> La version française suit le texte anglais.
>
> ------------------------------------------------------------------------------------
>
> This email may contain privileged and/or confidential information, and the Bank of
> Canada does not waive any related rights. Any distribution, use, or copying of this
> email or the information it contains by other than the intended recipient is
> unauthorized. If you received this email in error please delete it immediately from
> your system and notify the sender promptly by email that you have done so.
>
> ------------------------------------------------------------------------------------
>
> Le présent courriel peut contenir de l'information privilégiée ou confidentielle.
> La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute diffusion,
> utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
> personne autre que le ou les destinataires désignés est interdite. Si vous recevez
> ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans délai à
> l'expéditeur un message électronique pour l'aviser que vous avez éliminé de votre
> ordinateur toute copie du courriel reçu.
>


More information about the R-help mailing list