Hi,
I have 15000 household data that have some member in every houshold. I want to count the number of household member that have age more than 60 years old in every houshold.
What command that should i use?
Thx
Count value in a series with some condition
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Count value in a series with some condition
Code: Select all
Smpl if age>60
=@obssmpl
Follow us on Twitter @IHSEViews
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Count value in a series with some condition
If what you meant was separate counts for each household, something like
Code: Select all
smpl if age>60
count = @obsby(householdID,householdid)
Re: Count value in a series with some condition
Thank you Glenn and startz
Who is online
Users browsing this forum: No registered users and 28 guests