Question: Contains data from share.dta obs: 5 , 8 5 4 vars: 8 2 3 Jan 2 0 0 9 1 5 : 4 9 size:

Contains data from share.dta
obs: 5,854
vars: 823 Jan 200915:49
size: 64,394
Variable storage display
name type format label variable label
-----------------------------------------------------------------------------------
school byte %8.0g school number: 1-25
sex byte %8.0g sex: 1=male, 2=female
arm byte %8.0g treatment arm: 0=control, 1=intervention
scpar byte %8.0g social class
debut byte %8.0g onset of sexual activity in follow-up:
0=no,1=yes
regret byte %8.0g regret of first sex with last partner (in
those with >1 partner): 0=no,1=yes
kscore byte %8.0g knowledge of sexual health follow-up:
score from -8 to +8
idno float %9.0g individual number
-----------------------------------------------------------------------------------
Sorted by: school
Sorted by: schCreate a data set containing data for males only from the above dataset and name it "sharem.dta" using stata commands
Use collapse on the data set sharem, collapsing by school and arm, in order to find for each school a) the total number of males in the school (hint use a dummy variable) b) the number of males who have had sexual debut in the school c) the number of males in the school who regret their las sex act. Rename the variables maledebut_m and regret_m and create new variables for the proportion of males who had a sexual debut in each school and the proportion of males who regret sex in each school. Save the collapsed data set as share_school_m.
11) Use summary statistics to compare the school level proportion of males who had sexual debut and the school level proportion of males who regret having sex, between the two study arms.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!