Apply STATA commands & submit the output for each question only when indicated below i. Generate the log of birthweight and family income of children. Name these new variables Ibwght & Ifaminc. Include the output of this code. ii. Apply the command sum with the detail option to the variable faminc. Note: you should find the 25th percentile value, the 50th percentile and the 75th percentile value of faminc from the output - you will need it to answer the next question Include the output of this code. iii. iv. Use the output from part ii of this question to Generate a variable called "high_faminc" that takes a value 1 if faminc is less than or equal to the 25th percentile, it takes the value 2 if faminc is greater than 25th percentile but less than or equal to the 50th percentile, it takes the value 3 if faminc is greater than 50th percentile but less than or equal to the 75th percentile, it takes the value 4 if faminc is greater than the 75th percentile. Include the outcome of this code Use the command tab on "high_faminc" to verify that you have created it correctly i.e. the total frequency should equal the total number of observations. Include the outcome of this code I Variables Name bwght parity male white faminc fatheduc motheduc cigs Label birth weight, ounces birth order of child =1 if baby is male =1 if baby is white 1988 family income, $1000s father's yrs of educ mother's educ, years avg cigarettes/day, mother
Apply STATA commands & submit the output for each question only when indicated below i. Generate the log of birthweight and family income of children. Name these new variables Ibwght & Ifaminc. Include the output of this code. ii. Apply the command sum with the detail option to the variable faminc. Note: you should find the 25th percentile value, the 50th percentile and the 75th percentile value of faminc from the output - you will need it to answer the next question Include the output of this code. iii. iv. Use the output from part ii of this question to Generate a variable called "high_faminc" that takes a value 1 if faminc is less than or equal to the 25th percentile, it takes the value 2 if faminc is greater than 25th percentile but less than or equal to the 50th percentile, it takes the value 3 if faminc is greater than 50th percentile but less than or equal to the 75th percentile, it takes the value 4 if faminc is greater than the 75th percentile. Include the outcome of this code Use the command tab on "high_faminc" to verify that you have created it correctly i.e. the total frequency should equal the total number of observations. Include the outcome of this code I Variables Name bwght parity male white faminc fatheduc motheduc cigs Label birth weight, ounces birth order of child =1 if baby is male =1 if baby is white 1988 family income, $1000s father's yrs of educ mother's educ, years avg cigarettes/day, mother
Glencoe Algebra 1, Student Edition, 9780079039897, 0079039898, 2018
18th Edition
ISBN:9780079039897
Author:Carter
Publisher:Carter
Chapter9: Quadratic Functions And Equations
Section9.8: Analyzing Functions With Successive Differences
Problem 2BGP
Related questions
Question

Transcribed Image Text:Apply STATA commands & submit the output for each question only when
indicated below
i.
Generate the log of birthweight and family income of children. Name
these new variables Ibwght & Ifaminc. Include the output of this
code.
ii. Apply the command sum with the detail option to the variable
faminc. Note: you should find the 25th percentile value, the 50th
percentile and the 75th percentile value of faminc from the output -
you will need it to answer the next question Include the output of this
code.
iii.
iv.
Use the output from part ii of this question to Generate a variable
called "high_faminc" that takes a value 1 if faminc is less than or
equal to the 25th percentile, it takes the value 2 if faminc is greater
than 25th percentile but less than or equal to the 50th percentile, it
takes the value 3 if faminc is greater than 50th percentile but less than
or equal to the 75th percentile, it takes the value 4 if faminc is greater
than the 75th percentile. Include the outcome of this code
Use the command tab on "high_faminc" to verify that you have
created it correctly i.e. the total frequency should equal the total
number of observations. Include the outcome of this code

Transcribed Image Text:I
Variables
Name
bwght
parity
male
white
faminc
fatheduc
motheduc
cigs
Label
birth weight, ounces
birth order of child
=1 if baby is male
=1 if baby is white
1988 family income, $1000s
father's yrs of educ
mother's educ, years
avg cigarettes/day, mother
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 5 images

Recommended textbooks for you

Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill

Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL

Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt

Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill

Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL

Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt

Algebra: Structure And Method, Book 1
Algebra
ISBN:
9780395977224
Author:
Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:
McDougal Littell