Question

Stata Command Ask Count the number of countries where female life expectancy is at least 5...

Stata Command Ask

Count the number of countries where female life expectancy is at least 5 years greater than male life expectancy (again, you must consider missing values). How many are there?

lifeexpectancyatbirthmaleyears lifeexpectancyatbirthfemaleyears

What command should i type?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

You can use count if here.

You can use -

drop if lifeexpectancyatbirthfemaleyears == .

drop if lifeexpectancyatbirthmaleyears == .

count if lifeexpectancyatbirthfemaleyears - lifeexpectancyatbirthmaleyears 5

----------

Add a comment
Know the answer?
Add Answer to:
Stata Command Ask Count the number of countries where female life expectancy is at least 5...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Suppose that you have in your possession bivariate data giving birthrate and life expectancy information for...

    Suppose that you have in your possession bivariate data giving birthrate and life expectancy information for a random sample of 15 countries. For each of the countries, the data give both x, the number of births per one thousand people in the country's population, and y, the country's female life expectancy in years. The least squares regression equation computed from your data is y = 84.06 -0.51x. Suppose that you're predicting the female life expectancy for a country whose birthrate...

  • Insurance companies track life expectancy information to assist in determining the cost of life insurance policies....

    Insurance companies track life expectancy information to assist in determining the cost of life insurance policies. Life expectancy is a statistical measure of average time a person is expected to live, based on a number of demographic factors. Mathematically, life expectancy is the mean number of years of life remaining at a given age, assuming age-specific mortality rates remain at their most recently measured levels.          Last year the average life expectancy of all the Life Insurance policyholders in Ontario...

  • 28.Which of the following describes a type of transportation network where a few large, central nodes...

    28.Which of the following describes a type of transportation network where a few large, central nodes are connected to smaller points? regional network hub-and-spoke system linear network nodal network 29.Landlocked countries face particular exporting problems because both time and money are required to cross country borders, making transportation: efficient. expensive. sustainable. fast. 31.The greenhouse effect keeps the earth at a livable temperature. About how many degrees Fahrenheit (33 degrees Celsius) cooler would earth would be without the greenhouse effect? 30...

  • A complex number is a number in the form of a + bi, where a and...

    A complex number is a number in the form of a + bi, where a and b are real numbers and i is the square root of negative 1. Design and create a class called Complex for representing complex numbers. This class should have two attributes, a and b, which represent the parts of the complex number. This class should overload the +,-,*,/,++ and -- operators (both prefix and suffix) to perform basic complex number calculations according to the following...

  • 1. Use the picture provided to count the number of yellow and purple corn kernels. You...

    1. Use the picture provided to count the number of yellow and purple corn kernels. You should count ALL of the kernels visible in the picture. Each kernel is a seed-seeds are baby plants. Therefore, each kernel represents an offspring of the plant cross. Enter these Observed Values into Table 1. 048 2. Tally the total number of offspring that are yellow and purple by adding them together. This is the total Observed (O) value. Fill into Table 2. Table...

  • Java 1 Some help Please...... 1. Before You Begin Anticipate where things can go wrong Consider...

    Java 1 Some help Please...... 1. Before You Begin Anticipate where things can go wrong Consider how to gracefully shut down the program and save the users data and close files properly. Typically there are two scenarios to make a distinction between: The first is one that which you have absolutely no control over; such as if all the files are where they should be, and that the user has not deleted one or accidentally moved it rather than copied...

  • In Matlab Create a single script (.m file) to solve these problems. Unless directed otherwise, use...

    In Matlab Create a single script (.m file) to solve these problems. Unless directed otherwise, use meaningful variable names for each variable; do not use the default variable ans to store your results. For this project, suppress your output with semi-colons (;). Each problem should be in a separate cell, using the cell mode feature of MATLAB. Problem 4 Video games are rather complicated to program, not least of which because of the graphics work that needs to be completed...

  • the goal is to create a c++ programs with small functions where the main delegates series...

    the goal is to create a c++ programs with small functions where the main delegates series of functions where the real work takes place. In this programming assignment, you are not allowed to use global variables. Avoid using break (unless working with a switch statement). Limit your functions to no more than 30 statements of code (not including comments or blank lines). Never use a “return” in the middle of a loop! Program Assignment: When I went to Paris over...

  • Create a CodeBlocks project "HW 9" Write the code to ask the user to enter the...

    Create a CodeBlocks project "HW 9" Write the code to ask the user to enter the size of an array. Then create an integer array of that exact size. Ask the user to enter a maximum value and then write a loop to fill the array with random numbers with value in the range of 1 to the maximum value. For example, if the maximum value is 100, random numbers must have value 1 to 100 inclusive. Input size of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT