Search found 5 matches

by bjoern
Thu Feb 13, 2025 9:41 am
Forum: Programming
Topic: for loop with strings and alpha series
Replies: 1
Views: 36140

for loop with strings and alpha series

Hello I would like to create new alpha variables with the for loop. However, this is prevented by the quotation marks. For example: This code works fine: for %k %j 1 20 2 30 3 40 series country{%k}={%j} next But I would like to have the names of the countries as string variables alpha country1="...
by bjoern
Tue Mar 16, 2010 2:36 pm
Forum: Data Manipulation
Topic: @ngroups function
Replies: 11
Views: 12022

Re: @ngroups function

Thank you very much! I will try your suggestions.
by bjoern
Mon Mar 15, 2010 2:29 pm
Forum: Data Manipulation
Topic: @ngroups function
Replies: 11
Views: 12022

Re: @ngroups function

Thank you once again. In the meantime I have detected another "bug". I tried to use the @groupid function for an alpha series. Unfortunately, it doesn't work. Do you know how to get the number of distinct values for an alpha series?
by bjoern
Mon Mar 15, 2010 1:50 pm
Forum: Data Manipulation
Topic: @ngroups function
Replies: 11
Views: 12022

Re: @ngroups function

Thank you very much. But note, this sentence is from the user's guide I (Eviews 6 (PDF: page 753, Printed Version: page 749) at the end of the section "by-group statistics": "There are two related functions of note, @groupid(arg[, smpl]) returns an integer indexing the group ID for ea...
by bjoern
Mon Mar 15, 2010 6:28 am
Forum: Data Manipulation
Topic: @ngroups function
Replies: 11
Views: 12022

@ngroups function

I tried to use the „@ngroups” function in the following way. series test_a= @groupid(lfd_nr) scalar test_b= @ngroups(test_a) Whereas the series test_a is generated, the scalar test_b is not. I got the following error code: @NGROUPS is an illegal or reserved name in "SCALAR TEST_B=@NGROUPS(TEST_...

Go to advanced search