Home » Data » Dataset use in Stata » HELP!: Analysis on youth-specific age group only
Re: HELP!: Analysis on youth-specific age group only [message #1769 is a reply to message #1762] |
Wed, 02 April 2014 14:17 |
|
user-rhs
Messages: 132 Registered: December 2013
|
Senior Member |
|
|
OK, try this. Use the -svyset- command to tell Stata to weight point estimates as follows:
svyset [pweight=wgt]
Use the -svy- prefix before your tabulations
svy: tab v013
This will give you the proportions of women in the dataset that are in a particular age group. If you want the actual numbers, you would specify "count" as an option. For cross-tabulations, decide whether you want the row or column percentages, and specify either row or column as an option.
e.g.
svy: tab v013
svy: tab v013, count /* gives counts instead of percentages */
svy: tab v013 v155, row /*gives the row percentages */
svy: tab v013 v155, col /*gives the column percentages */
svy: tab v013 v155 /*without specifying row or column, percentages are taken out of the total N */
Note that the syntax for tabulation is tab rowvbl columnvbl. Stata will give you an error message if your column variable has too many unique values. So for example if you tried to do literacy by single year age, you will get:
svy: tab v155 v012,row
too many values
r(134);
You should swap it and make v012 the row variable and v155 the column vbl (and switch the specification of row or column percentages as necessary)
svy: tab v012 v155,col
|
|
|
|
|
HELP!: Analysis on youth-specific age group only
By: malayaka on Wed, 19 March 2014 11:16
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: user-rhs on Wed, 19 March 2014 12:29
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: malayaka on Wed, 19 March 2014 15:55
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: user-rhs on Wed, 19 March 2014 16:31
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: malayaka on Thu, 20 March 2014 12:33
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: malayaka on Wed, 02 April 2014 00:25
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: user-rhs on Wed, 02 April 2014 12:27
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: malayaka on Wed, 02 April 2014 12:32
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: user-rhs on Wed, 02 April 2014 12:39
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: user-rhs on Wed, 02 April 2014 12:41
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: malayaka on Wed, 02 April 2014 13:19
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: user-rhs on Wed, 02 April 2014 14:17
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: malayaka on Wed, 02 April 2014 13:51
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: user-rhs on Wed, 02 April 2014 14:20
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: malayaka on Thu, 03 April 2014 12:21
|
|
|
Re: HELP!: Analysis on youth-specific age group only
By: user-rhs on Thu, 03 April 2014 17:25
|
Goto Forum:
Current Time: Sun Nov 24 19:15:33 Coordinated Universal Time 2024
|