Search found 7 matches

by malyang713
Thu Mar 12, 2015 10:08 pm
Forum: Programming
Topic: for loop control
Replies: 5
Views: 3002

Re: for loop control

After erasing ""s, the code works.
Thank you for your kind reply.
by malyang713
Thu Mar 12, 2015 10:04 pm
Forum: Programming
Topic: for loop control
Replies: 5
Views: 3002

Re: for loop control

I used the code:

for %i "1 3 7 11 13 15 20 21 29"

series x{%i}=@nrnd
series y{%i}=0.9*x{%i}

next

But it doesn't work
Error: Syntax error in "SERIES X{%I}=@NRND".
by malyang713
Thu Mar 12, 2015 10:01 pm
Forum: Programming
Topic: for loop control
Replies: 5
Views: 3002

Re: for loop control

I think it is because of the space after "%i=" in the code. But after fixing that, it still doesn't work.
Error: "Numeric operator applied to string data in "SERIES X{%I}=@NRND.""
by malyang713
Thu Mar 12, 2015 9:54 pm
Forum: Programming
Topic: for loop control
Replies: 5
Views: 3002

Re: for loop control

Thank you for your kind reply.

However, it doesn't work.
The error occurs: "Syntax error in "SERIES X{%I}=@NRND.""

How do I can fix this?
by malyang713
Thu Mar 12, 2015 7:15 pm
Forum: Programming
Topic: for loop control
Replies: 5
Views: 3002

for loop control

Hello, I have a simple question Is there any way to loop by irregular numbers? for example: (It has a syntax error) for !i= 1, 3, 7, 11, 13, 15, 20, 21, 29 series x{!i}=@nrnd series y{!i}=0.9*x{!i} next How do I loop the program using control variable i, using irregular numbers? Thank you for your a...
by malyang713
Sun Mar 09, 2014 5:05 pm
Forum: Programming
Topic: Short and easy question about "makeresids"
Replies: 2
Views: 1945

Re: Short and easy question about "makeresids"

Thank you Gareth,
I see the problem is because of rewrite. I appended 'delete' command and it works well.

Thank to you again!
by malyang713
Thu Mar 06, 2014 5:27 pm
Forum: Programming
Topic: Short and easy question about "makeresids"
Replies: 2
Views: 1945

Short and easy question about "makeresids"

Hello, I have very short and easy question about makeresids command, especially for VAR object. When I control the sample, for example, smpl if w < 1 I construct a VAR object following: var v01.ls 1 1 a b c @ w Assume there are 100 observations satisfying that condition. Additionally, I control the ...

Go to advanced search