Classify the variables by the levels of measurement used. Explain your choice of the levels of measurement. 2. Using R, generate a graph to represent the sample by alcohol usage in the past 4 weeks. What can you say about alcohol usage among this sample of young persons?
This requires manual calculation as well as analyzing data using the statistical package R. The detailed rubric for this may be located in the guide as well as the document. You will be working with the KBP dataset provided in the course space. You will also need to use the document, Questions for KBP Survey. This document has selected questions as they appeared on the questionnaire that was administered to collect the data for this project.
1. Classify the variables by the levels of measurement used. Explain your choice of the levels of measurement.
2. Using R, generate a graph to represent the sample by alcohol usage in the past 4 weeks. What can you say about alcohol usage among this sample of young persons?
3. Using R, calculate the proportion of individuals by relationship status and report in a relative frequency distribution table.
Respondents # | Age of Respondent | Sex of Respondents | Relationship Status | Age at first Sexual Encounter | Practice Religion | number of persons use condom with in the last 12 months | # of persons had sex with in last 12 months | Alcohol usage last four weeks |
1 | 22 | 1 | 1 | 12 | 1 | 1 | 1 | 4 |
2 | 15 | 1 | 4 | 12 | 1 | 0 | 2 | 4 |
3 | 16 | 1 | 4 | 13 | 2 | 1 | 3 | 4 |
4 | 19 | 1 | 4 | 12 | 1 | 2 | 2 | 3 |
5 | 20 | 1 | 4 | 19 | 2 | 1 | 1 | 4 |
6 | 18 | 1 | 3 | 9 | 2 | 1 | 1 | 3 |
7 | 20 | 1 | 3 | 16 | 2 | 1 | 1 | 3 |
8 | 20 | 1 | 3 | 13 | 2 | 1 | 2 | 2 |
9 | 17 | 1 | 4 | 12 | 1 | 2 | 2 | 2 |
10 | 19 | 1 | 4 | 13 | 1 | 2 | 3 | 3 |
11 | 24 | 1 | 4 | 22 | 2 | 1 | 1 | 3 |
12 | 18 | 1 | 3 | 14 | 1 | 2 | 4 | 3 |
13 | 16 | 1 | 4 | 15 | 1 | 1 | 2 | 4 |
14 | 18 | 1 | 3 | 17 | 2 | 0 | 1 | 4 |
15 | 21 | 1 | 3 | 13 | 1 | 1 | 3 | 4 |
16 | 17 | 1 | 4 | 16 | 1 | 4 | 8 | 3 |
17 | 19 | 1 | 3 | 17 | 1 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| 20 | 2 | 3 | 17 | 1 | 0 | 3 | 4 |
47 | 18 | 2 | 1 | 17 | 2 | 1 | 1 | 2 |
48 | 35 | 2 | 1 | 13 | 2 | 1 | 3 | 1 |
49 | 39 | 2 | 1 | 15 | 2 | 1 | 1 | 2 |
50 | 32 | 2 | 1 | 12 | 2 | 2 | 4 | 2 |
51 | 19 | 2 | 3 | 16 | 1 | 1 | 1 | 4 |
52 | 16 | 2 | 4 | 14 | 1 | 1 | 2 | 4 |
53 | 22 | 2 | 1 | 16 | 1 | 0 | 1 | 4 |
54 | 29 | 2 | 1 | 18 | 1 | 1 | 1 | 4 |
55 | 40 | 2 | 3 | 10 | 2 | 1 | 3 | 3 |
56 | 20 | 2 | 3 | 17 | 1 | 1 | 1 | 3 |
57 | 24 | 2 | 2 | 14 | 2 | 1 | 3 | 2 |
58 | 17 | 2 | 4 | 15 | 1 | 0 | 0 | 4 |
59 | 19 | 2 | 2 | 15 | 2 | 1 | 1 | 2 |
60 | 44 | 2 | 1 | 19 | 2 | 1 | 1 | 1 |
61 | 41 | 2 | 4 | 14 | 2 | 10 | 20 | 1 |
62 | 34 | 2 | 1 | 15 | 1 | 1 | 1 | 3 |
63 | 33 | 2 | 1 | 16 | 1 | 0 | 1 | 4 |
64 | 18 | 2 | 3 | 14 | 2 | 1 | 1 | 3 |
65 | 16 | 2 | 4 | 12 | 1 | 0 | 1 | 3 |
66 | 18 | 2 | 3 | 16 | 2 | 1 | 1 | 4 |
67 | 18 | 2 | 3 | 13 | 2 | 1 | 1 | 4 |
68 | 15 | 2 | 3 | 13 | 2 | 1 | 1 | 1 |
69 | 19 | 2 | 4 | 17 | 1 | 1 | 1 | 4 |
70 | 19 | 2 | 1 | 13 | 2 | 1 | 1 | 4 |
Selected Questions
-
How old are you? .....................
-
What is your sex? Male Female
-
What is your current relationship status?
Married/ Living with a partner [ ]
Partner who stays over night or who you stay overnight with [ ] See occasionally to have sex [ ]
Single/ no sex partner at this time [ ] -
What is your age of first sexual encounter? .......................
-
Do you actively practice religion? Yes [ ] No [ ]
-
How many partners you had sex with in the last 12 months? ...................
-
How many of these partners did you use condom with in the last 12 months? ................
-
In the last 4 weeks how often did you use alcohol?
Every day [ ] At least once per week [ ] Less often [ ] Never [ ]
Note: In the dataset
Male = 1 Female = 2 Yes = 1 No = 2
Relationship Status:
1= Married/ Living with a partner
2= Partner who stays overnight or who you stay overnight with
3= See occasionally and have sex
4= single/ no sex partner at this time
Alcohol Usage
Everyday = 1 At least once a week = 2 less often = 3 Never = 4
![](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F4f9bf561-0307-4743-8090-994d88abbe71%2Fd56624c8-5f17-41b7-9f14-0769816a5e0a%2Ful6fwh.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![MATLAB: An Introduction with Applications](https://www.bartleby.com/isbn_cover_images/9781119256830/9781119256830_smallCoverImage.gif)
![Probability and Statistics for Engineering and th…](https://www.bartleby.com/isbn_cover_images/9781305251809/9781305251809_smallCoverImage.gif)
![Statistics for The Behavioral Sciences (MindTap C…](https://www.bartleby.com/isbn_cover_images/9781305504912/9781305504912_smallCoverImage.gif)
![MATLAB: An Introduction with Applications](https://www.bartleby.com/isbn_cover_images/9781119256830/9781119256830_smallCoverImage.gif)
![Probability and Statistics for Engineering and th…](https://www.bartleby.com/isbn_cover_images/9781305251809/9781305251809_smallCoverImage.gif)
![Statistics for The Behavioral Sciences (MindTap C…](https://www.bartleby.com/isbn_cover_images/9781305504912/9781305504912_smallCoverImage.gif)
![Elementary Statistics: Picturing the World (7th E…](https://www.bartleby.com/isbn_cover_images/9780134683416/9780134683416_smallCoverImage.gif)
![The Basic Practice of Statistics](https://www.bartleby.com/isbn_cover_images/9781319042578/9781319042578_smallCoverImage.gif)
![Introduction to the Practice of Statistics](https://www.bartleby.com/isbn_cover_images/9781319013387/9781319013387_smallCoverImage.gif)