What percentage of observations have missing data

Assignment Help Other Subject
Reference no: EM132363416

Problem Set

1 Instructions

The following two files are needed for this assessment:

The Roe2006Data provides the data that you will use to complete this assessment, while the Roe2006Codebook.txt provides the necessary "codebook" to make sense of the variables included in the CSV file.

2 Data Management

1. Import the data into R. After importing the data, use R to:

a) Count the number of observations (i.e. countries) in the dataset.

b) Count the number of observations with any missing data.

c) What percentage of observations have missing data?

2. Generate new variables. Please generate the following additional variables:

a) Generate a new variable named common equal to 1 if the lorigin variable equals "Common" and 0 otherwise.

b) Generate a new variable named stable equal to 1 if the military variable equals "Stable" and 0 otherwise.

3. Save the data. Use R to save your modified dataset as a CSV.

3 Describing the Data

1. Cross-tabulation. Use R to generate a cross-tabulation of the variables common and stable that you created in section 2.2. What proportion of "common" law countries where also "stable"?

2. Histogram. Generate a histogram for the variable gdp.

a) Is the distribution for gdp symmetric or skewed? Please explain your answer.

Data Analysis Essay

1 Instructions

The Roe2006Data provides the data that you will use to complete this assessment, while the Roe2006Codebook.txt provides the necessary "codebook" to make sense of the variables included in the CSV file.

2 Data Management

1. Import the data into R. After importing the data, use R to:

a) Count the number of observations (i.e. countries) in the dataset.

b) Count the number of observations with any missing data.

c) What percentage of observations have missing data?

2. Generate new variables. Please generate the following additional variables:

a) Generate a new variable named common equal to 1 if the lorigin variable equals "Common" and 0 otherwise.

b) Generate a new variable named stable equal to 1 if the military variable equals "Stable" and 0 otherwise.

3. Save the data. Use R to save your modified dataset as a CSV.

3 Describing the Data

1. Cross-tabulation. Use R to generate a cross-tabulation of the variables common and stable that you created in section 2.2. What proportion of "common" law countries where also "stable"?

2. Histogram. Generate a histogram for the variable gdp.

a) Is the distribution for gdp symmetric or skewed? Please explain your answer.

3. Statistics. Use R to produce the number of observations, the mean, the standard deviation, the minimum, and the maximum value for
each of the following variables: gdp, separation, laborpower, laborreg, common, and stable.

a) How would you interpret the mean and standard deviation for gdp?

4. Bivariate description.

a) Generate a scatter plot for the variables laborpower and gdp. Would you say that there is a positive relationship, negative relationship,
or no relationship?

b) Calculate the correlation between laborpower and gdp. How would you interpret this correlation?

Inference

1. Calculate the 95% confidence interval for gdp.

a) Let's say that we wanted to be more than 95% confident. Estimate the 99% confidence interval. Is the 99% confidence interval wider
or narrower than the interval described in part (b)?

b) Let's say that I thought that the true underlying population mean of gdp was $25,000. Does the data support this position? Please
explain.

5 Hypothesis Testing

1. One sample test. Let's say that we wanted to test the hypothesis that most nations were unstable during the WWII period. Use the
stable variable generated above to test this hypothesis at the 5% error level.

a) Please state the null and alternative hypothesis. Is this a one- or two-tailed test?

b) Can we reject the null hypothesis at α = 0.05? What about α = 0.01?

2. Two sample test. Let's say that we are interested in examining whether the average intensity of labor market regulation (i.e. the laborreg variable) differs across common and civil law countries.

a) Please state the null and alternative hypothesis. Is this a one- or two-tailed test?

b) Use common and laborreg to test this hypothesis at α = 0.05? Can we reject the null hypothesis?

Attachment:- CodeBook.rar

Reference no: EM132363416

Questions Cloud

Calculate the volume of the parallelepiped spanned : A block is dragged across a floor with a force of 200N that acts at an angle of 90 degrees to the direction of displacement), over a distance of 3m.
Calculate an ICT carbon footprint for a department : ICTSUS601 Integrate Sustainability in ICT Planning and Design Projects Assignment, Abbey College Australia. Calculate an ICT carbon footprint for a department
Identify the factor that generates the periodic nature : Find the maximum and minimum voltages and the times at which they occur. Identify the factor that generates the periodic nature of the graph.
How would you use normal vectors to identify configuration : Solve one questions about intersection of the plane and then you will make a model of intersection of planes. How would you use normal vectors to identify.
What percentage of observations have missing data : POL-SOC 1041-Count the number of observations with any missing data. What percentage of observations have missing data?
Calculate the probability of selecting a family : QBM117 Business Statistics Assignment, Charles Sturt University, Australia. Calculate the probability of selecting a family
Ethics of the academy of criminal justice sciences : Consider how you would address this ethical issue using ethical standards from the Code of Ethics of the Academy of Criminal Justice Sciences (ACJS).
Important part of the planning process for emergencies : Preparing the populace is an important part of the planning process for emergencies. Creates several mechanisms for communicating with the public.
Tort claims that patty can make against cash mart : What are the possible tort claims that Patty can make against Cash Mart? Discuss the elements of claim and how those elements relate to the facts in scenario.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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