Sample depending on number of NAs and zeros
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
Sample depending on number of NAs and zeros
I would like to set the sample if the number of NAs and zeros does not exceed a certain number. Is that possible simply using the smpl command instead of a combination of commands?
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13315
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Sample depending on number of NAs and zeros
If all the numbers are positive:
Change the x>0 bit to handle negatives.
Code: Select all
smpl if @sum(x>0)>mynumber
Change the x>0 bit to handle negatives.
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: Google [Bot] and 8 guests