Page 1 of 1

Remove space

Posted: Mon Sep 25, 2017 4:54 pm
by mpsc19
Hi! I want to delete the space between 0 and 1 of the code at the end, how is it done? Thanks. Im using Eviews 9.

smpl @all if @val(a2)=397050 1

Re: Remove space

Posted: Mon Sep 25, 2017 6:30 pm
by startz
Hi! I want to delete the space between 0 and 1 of the code at the end, how is it done? Thanks. Im using Eviews 9.

smpl @all if @val(a2)=397050 1
Uh, position the cursor in front of the 1 and hit backspace?

Re: Remove space

Posted: Tue Sep 26, 2017 6:14 am
by mpsc19
Hi! I want to delete the space between 0 and 1 of the code at the end, how is it done? Thanks. Im using Eviews 9.

smpl @all if @val(a2)=397050 1
Uh, position the cursor in front of the 1 and hit backspace?
No :( I get the poster "WARNING: Sample contains no observations"

Re: Remove space

Posted: Tue Sep 26, 2017 6:22 am
by startz
Hi! I want to delete the space between 0 and 1 of the code at the end, how is it done? Thanks. Im using Eviews 9.

smpl @all if @val(a2)=397050 1
Uh, position the cursor in front of the 1 and hit backspace?
No :( I get the poster "WARNING: Sample contains no observations"
How many observations are there in your file in which @val(a2) equals exactly 3970501?

Re: Remove space

Posted: Tue Sep 26, 2017 6:50 am
by mpsc19
Uh, position the cursor in front of the 1 and hit backspace?
No :( I get the poster "WARNING: Sample contains no observations"
How many observations are there in your file in which @val(a2) equals exactly 3970501?
There are 12 observations

Re: Remove space

Posted: Tue Sep 26, 2017 6:53 am
by startz
Perhaps you should post your workfile. Be sure it Includes a series that you've set equal to @val(a2). Tell us a couple of observations that have the right value.

Re: Remove space

Posted: Tue Sep 26, 2017 7:04 am
by mpsc19
What I did was create an alpha to join two codes (example: 236120 and 1) and then see the observations. At first it worked because, for example, the two codes were together (2361201), but some are shown separately (397050 1) and I have that problem

Example:
alpha a1=codusu
alpha a2= a1 + @str(nro_hogar)
series anh
anh= @sumsby (CH03=3, a2)
smpl @all if @val(a2)=2361201

Image

I do not know if it's what you ask because I do not handle English very much. Sorry and thanks.

Re: Remove space

Posted: Tue Sep 26, 2017 7:11 am
by startz
Show us the example that doesn't work, not an example that does work. And first create a new series equal to @val(a2) and show us that one too.