Write down Stata code to create a dummy variable

Assignment Help Basic Statistics
Reference no: EM132169948

Questions -

1. The following graph was created by a top economist. Use the principles of graphic design we learned to critique it, coming up with as many changes as you can.

742_figure.png

2. Consider the following codebook entry for a variable that describes whether each respondent has private health insurance. The variable is called HIPRIV.

HIPRIV: Private health insurance

1. Mentioned

2. Not mentioned

7. Refused

8. Not ascertained

9. Don't know

Write down Stata code to create a dummy variable that indicates whether a person is privately insured. You'd like to exclude observations from your analysis if you are not sure as to their insurance status.

3. Give an example of two datasets we've analyzed or discussed, one that is a census and one that is a sample. Explain in a single sentence why each qualifies as a census or sample.

4. The CDC disseminates data on all births in the United States for researchers to analyze. For this exercise, you will need to navigate to the linked website and download Birth Data File for U.S. Territories from 2014. The filename will be Nat2014ps.zip.

That file contains a record for all births in US Territories in 2014. We will focus on US Territories since the associated datasets are smaller than the (enormous) files for the rest of the United States.

I used the following Stata commands to bring the data into Stata.

infix ///

data_year 9-12 ///

resident_status 104 ///

prenatal_number_of_visits 238-239 ///

str sex 475 ///

birthweight 504-507 ///

apgar_score 444-445 ///

birth_year 9-12 ///

birth_month 13-14 ///

mother_age 75-76 ///

mother_marital_status 120 ///

mother_education 124 ///

method_of_delivery 402 ///

using Nat2014PublicPS.c20150514.r20151007.txt

a. First consider disparities in health by maternal education. Many argue that more-educated women have healthier babies and better birth experiences. Test whether this is the case. To do so, create a single variable that divides observations by whether they are high-school dropouts, high-school graduates, or have some college experience. To keep the code simple, label teenage mothers as high-school dropouts, even though they might eventually graduate high school.

What is the mean birth weight for high-school dropouts? For high-school graduates? For those with some college experience?

b. What share of babies born in US Territories are born via cesarean section?

c. What is the c-section rate for babies born to mothers who are high-school dropouts? High-school graduates? Those with some college experience?

d. Graph the c-section rate versus mother's age for all mothers aged 16 through 45. Mother's age should be on the horizontal axis.

e. Finally, report the average age of the mother for the three education categories. These variables seem to be related: the c-section risk, maternal age, and maternal education. Describe how the relationship between education and c-section might be ''confounded'' by maternal age. Explain what that means.

Attachment:- Assignment Files.rar

Reference no: EM132169948

Questions Cloud

Thoughts on web intellectual property : What are your thoughts on Web Intellectual Property? How difficult is it to track?
Vertical growth as a corporate strategy : How does horizontal growth differ from vertical growth as a corporate strategy? From concentric diversification?
Small consignment business : Mary and Jo enter a contract in which Jo agrees to buy Mary's small consignment business for $300,000.00.
Intended beneficiary of the jerry-bob contract : Is Mary an intended beneficiary of the Jerry-Bob contract" Why or why not? Explain your answer.
Write down Stata code to create a dummy variable : Questions - Write down Stata code to create a dummy variable that indicates whether a person is privately insured
Participates in the fun and play event : Enter the name of one (1) organization that participates in the following fun/play event?
What benefits does a host-country like costa rica : What benefits does a host-country like Costa Rica gain from Intel Investments?
Which firm had acted least responsibly : Among Cisco, Google, Microsoft, and Yahoo, which firm (in your judgment) had acted most responsibly? Why? Which firm had acted least responsibly? Why?
Discuss about the efficiency of your performance : Your Supervising Manager called a meeting early Monday morning to discuss the tasks you will need to accomplish in this week. He/she was very complimentary.

Reviews

Write a Review

Basic Statistics Questions & Answers

  Find the odds of selecting commercial a for the men

Energy-drink commercials. A study was designed to compare two energy-drink commercials. Each participant was shown the commercials, A and B.

  How many samples will be analyzed before detecting a change

On average, how many samples will be analyzed before detecting a change in the process mean? Assume that the process mean is now at 110 mm (having moved from 105 mm) and that the process standard deviation is 6 mm. Samples of size 4 are selected f..

  What percent of oldest children are humanities students

Birth order. Is your birth order related to your choice of major? A Statistics professor at a large university polled his students to find out.

  What is the number of discrete events

1. The expected number of flaws in 20-ft intervals of wire is 5.0. a. What is the number of discrete events, feet or flaws?

  What is the standard score of a height of given inches

Heights of young men. The distribution of heights of young men is approximately Normal with mean 70 inches and standard deviation 2.5 inches.

  Value of the test statistic-p-value and conclusions

Translate this into a statistical hypothesis-testing problem and carry out the test. Be sure to give the null and alternative hypotheses, the value of the test statistic, the p-value, and your conclusions.

  Determine the posterior mean pollutant concentration

The air quality in a building is of interest to an environmental engineer. The mean air quality is measured in the form of the amount of pollutant in the air.

  Hybrid dysgenesis in drosophila melanogaster

A study of sterility in the fruit fly ("Hybrid Dysgenesis in Drosophila melanogaster: The Biology of Female and Male Sterility," Genetics, 1979: 161-174) reports the following data on the number of ovaries developed by each female fly in a sample ..

  Construct a histogram and a frequency polygon

Construct a frequency distribution starting with 10 as the lowest class beginning point and use a class width of 10. Construct a histogram and a frequency.

  Develop a venn diagram to illustrate the data

Develop a Venn diagram to illustrate the data, hence use it to find the probability that a worker picked at random: (1) Does not speaker English, (2) Speak neither of the languages, (3) Speak French and Russian but not English.

  Computing the infant mortality

The infant mortality rate is defined as the number of infant deaths per 1,000 live births. This rate is often used as an indicator of the level of health.

  What is true of the samples

If a researcher randomly selects subjects from a population and assigns them randomly to either an experimental or control group

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd