This may be of some help:?try

On Mon, Oct 12, 2009 at 9:42 AM, Arif Chandra <arif.chan...@hotmail.com>wrote:

>
> Hi R-users,
>
> I would like to ask question related to error output.
> If an error comments come out, then the program will automatically stop.
> I want to ask , how I can still continue the program even though there is
> an error comment?
>
> var=VAR(Canada,p=3,type="const")
>
> for (j in 1:nrow(com))
> {
> mat=ma
> {
> for (i in 1:ncol(com))
> {
>    y=which(mat==com[j,i])
>      mat[y]=NA
>
> }
>
>    z=which(mat!=0)
>      mat[z]=0
>    hitt=SVAR(var , estmethod = "scoring", Amat = mat, Bmat = NULL,max.iter
> = 100, maxls = 1000, conv.crit = 1.0e-8)
>    hit[j]=hitt$LR$statistic
>
> }
> }
>
> There will be an error comment,e.g. : Error in solve.default(BinvA) :
>  Lapack routine dgesv: system is exactly singular"
>
> But I still want to continue to compute the SVAR.. How can I do it?
>
> Thanks for answering it..
> Regards,
>
> Arif
>
> _________________________________________________________________
>
>  Facebook.
>
> k-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-id:SI_SB_2:092009
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@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.
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to