Hi Everyone,
I am using Italian Time Use data and I would like to compute the fraction/percentage of people who reported a given activity (i.e. those that spent a positive time on activity X on year y) and then I would like to test if there exist differences between the two years of interest.
To this end, I have generated a dummy variable for each activity, such that it takes value 1 if time devoted to X is >0 and zero otherwise. Hence my questions are:
- is there a way to have a variables that tells me the fraction of 1 for a given variable in a given year?
-Can I perform a t-test on the difference on the fraction of 1 between these two year using test, by(year)?
Thank you in advance
Andrea
I am using Italian Time Use data and I would like to compute the fraction/percentage of people who reported a given activity (i.e. those that spent a positive time on activity X on year y) and then I would like to test if there exist differences between the two years of interest.
To this end, I have generated a dummy variable for each activity, such that it takes value 1 if time devoted to X is >0 and zero otherwise. Hence my questions are:
- is there a way to have a variables that tells me the fraction of 1 for a given variable in a given year?
-Can I perform a t-test on the difference on the fraction of 1 between these two year using test, by(year)?
Thank you in advance
Andrea
Comment