Critical Thinking Assignment
This week we are learning about ordinal/categorical, continuous, and dichotomous variables. Using the Gestation Demographics SEU dataset that is located in the tabs at the bottom of the Framingham dataset provided, perform the following problems using R Studio or Excel.
1. Create a simple distribution graph (histogram) where we will explore the age of women after giving birth to their first child. Remember that a histogram consists of parallel vertical bars that show the frequency distribution of a quantitative variable in the graph. See the example in Introductory Statistics with R on pages 71-7 or pages 123-124 in EXCEL statistics A quick guide. The area of each bar is equal to the frequency of items found in each class.
2. Determine the mean age of the women in the Gestation Demographics SEU dataset.
3. We will be testing the hypothesis that the mean age (? = ?0) for women is 37 years in the Gestation Demographics SEU dataset. The topic of hypothesis testing was introduced in HCM505. If you need a review see Chapter 7 of our text.
H0 The mean age of women giving birth is 37 years old. (Null Hypothesis)
H1 The mean age of women giving birth is not 37 years old. (Alternative Hypothesis)
Ensure to submit the following requirements for the assignment:
* Present your findings in a Word document, by copying and pasting the histogram into the document.
* After your analysis state whether you accept or reject the null hypothesis and your reasoning why.
* Always use a title page, an introduction, a discussion where you interpret the meaning of the histogram, and a conclusion should be included.
Expert Solution Preview
In this critical thinking assignment, we will be exploring ordinal/categorical, continuous, and dichotomous variables using the Gestation Demographics SEU dataset. We will be using R Studio or Excel to perform the following tasks: creating a simple distribution graph showing the age of women after giving birth to their first child, determining the mean age of women in the dataset, and testing the hypothesis that the mean age of women giving birth is 37 years old. After our analysis, we will state whether we accept or reject the null hypothesis and provide reasoning for our decision.
1. How do we create a histogram using R Studio or Excel?
To create a histogram using R Studio, we can use the “hist()” function. First, we need to import the dataset into R Studio using the “read.csv()” function. Then, we can extract the age variable from the dataset and use the “hist()” function to create the histogram. For example:
# Import dataset
#Saudi #Electronic #University #Dichotomous #Variables #Paper