## Search found 18 matches

Mon Jan 30, 2017 4:03 pm
Forum: Programming
Topic: matrix multiplication
Replies: 8
Views: 6310

### Re: matrix multiplication

Your are right Gareth. Facet of my data.
Mon Jan 30, 2017 3:43 pm
Forum: Programming
Topic: matrix multiplication
Replies: 8
Views: 6310

### Re: matrix multiplication

Hi
I have a matrix(12,12) A and a vector(12) B. When I declare a vector AB=@inverse(A)*B, I get very unreasonable result that all elements of AB same but must be different. Does anyone has any explanation for that?
Tue Jan 17, 2017 5:32 am
Forum: Estimation
Topic: near singular matrix problem
Replies: 1
Views: 1199

### near singular matrix problem

Hi,
I have a panel data, I cannot estimate the following equation because of near singular matrix problem

y=c(1)+(c(2)/y+c(3)/x)^-1

I cannot understand the reason.
Thu Jan 14, 2010 10:04 am
Forum: Programming
Topic: Model selection with AIC etc.
Replies: 2
Views: 1614

### Re: Model selection with AIC etc.

Yes you are right. you are great.

Code: Select all

`!mininfocrit=999999for !k=0 to 12if eq_!k.@aic<!mininfocrit then!mininfocrit=eq_!k.@aic!bestlag=!kendifnextshow eq_{!bestlag}`

ıt works very well. thank you very much.
Thu Jan 14, 2010 9:37 am
Forum: Programming
Topic: Model selection with AIC etc.
Replies: 2
Views: 1614

### Model selection with AIC etc.

Hi everybody. I have following problem; I have estimated numbers of equaiton and try to find which one has lowest aic by following code note: my equations are named as eq_0, eq_1.....eq_12 for !k=0 to 11 for !lag=0 to 11 !mininfocrit=999999 if eq_!k.@aic<!mininfocrit then !bestlag=!k !mininfocrit=eq...
Tue Jul 21, 2009 11:14 am
Forum: Programming
Topic: lag selection with two independent variables
Replies: 5
Views: 3196

### Re: lag selection with two independent variables

I replace to %regs=%regs + "ainf(" + @str(!j) + " ) " + "tr121(" + @str(!k) + " ) " as %space=" " %regs=%regs + %space + "ainf(" + @str(!j) + " ) + %space + "tr121(" + @str(!k) + " ) " It is working but I am still n...
Tue Jul 21, 2009 10:36 am
Forum: Programming
Topic: lag selection with two independent variables
Replies: 5
Views: 3196

### Re: lag selection with two independent variables

Unfortunately putting space did not work. same problem exist
Tue Jul 21, 2009 10:15 am
Forum: Programming
Topic: lag selection with two independent variables
Replies: 5
Views: 3196

### Re: lag selection with two independent variables

I thing there is a problem at the line %regs=%regs + "ainf(" + @str(!j) + " )" + "tr121(" + @str(!k) + " ) " I face with near singular problem. but regression seems like that ls ainf1 c ainf(-4)tr121 ainf(-4)tr121(-3) .... dependent variables are product in eq...
Tue Jul 21, 2009 9:58 am
Forum: Programming
Topic: lag selection with two independent variables
Replies: 5
Views: 3196

### lag selection with two independent variables

Hi everybody I try to write a code that can make lag selection for 2 independent variables according to information criterion. The following code does not work. If anyone can help I appreciate with that. for %y ainf1 ainf2 ainf3 ainf4 ainf5 ainf6 equation eq_{%y} !mininfocrit=999999 for !lag=-4 to -...
Tue Apr 21, 2009 11:06 am
Forum: Data Manipulation
Topic: exportin equation to excell
Replies: 6
Views: 2833

### Re: exportin equation to excell

Thank you very much Gareth
Tue Apr 21, 2009 10:38 am
Forum: Data Manipulation
Topic: exportin equation to excell
Replies: 6
Views: 2833

### Re: exportin equation to excell

Thank you Gareth

Is there any example for this type of program? May be I can modify it.
Tue Apr 21, 2009 10:32 am
Forum: Data Manipulation
Topic: exportin equation to excell
Replies: 6
Views: 2833

### Re: exportin equation to excell

For example I run several regression and save them as eq1, eq2 etc (about 100 equations) . I want to export thesee quation results to excell. Otherwise I have to open equations by one by and copy coefficietns and test statistics then paste on excell.
Tue Apr 21, 2009 10:10 am
Forum: Data Manipulation
Topic: exportin equation to excell
Replies: 6
Views: 2833

### exportin equation to excell

Dear all,

Is it possible to export several equations to excell?
Mon Apr 20, 2009 4:40 pm
Forum: Programming
Topic: Lag selection
Replies: 16
Views: 9601

### Re: Lag selection

I have fixed it. It is like that
eq_{%y}.ls {%y} c PC1 PC2 ainf(0 to !bestlag)

Thank you very vey much Gareth.
Mon Apr 20, 2009 4:35 pm
Forum: Programming
Topic: Lag selection
Replies: 16
Views: 9601

### Re: Lag selection

How can I fix it? Have you any suggestion? Thanks a lot.