Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago