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?

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Topic Video
Question

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 1 1 3
18 15 1 4 13 1 0 1 3
19 20 1 3 12 1 6 10 2
20 18 1 2 17 2 1 3 1
21 20 1 3 12 2 1 9 3
22 20 1 4 15 2 2 2 3
23 16 1 4 14 1 1 1 3
24 19 1 3 10 2 3 9 1
25 23 1 3 10 2 0 2 3
26 17 1 2 16 1 1 1 4
27 19 1 4 12 2 2 3 3
28 24 1 2 13 2 4 9 1
29 15 1 4 16 2 1 1 4
30 23 1 1 17 2 0 1 2
31 19 1 3 12 2 1 1 4
32 16 2 4 13 1 2 2 4
33 25 2 4 18 2 1 2 3
34 23 2 2 18 1 0 1 4
35 41 2 1 21 1 0 1 3
36 20 2 4 16 1 1 2 4
37 40 2 3 16 2 0 1 4
38 37 2 1 20 1 0 1 4
39 26 2 1 24 1 1 1 4
40 38 2 4 25 1 0 2 4
41 18 2 3 13 1 1 1 3
42 37 2 4 16 2 0 1 2
43 39 2 1 19 1 1 1 4
44 34 2 3 15 2 2 3 2
45 44 2 1 20 1 1 1 4
46 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

  1. How old are you? .....................

  2. What is your sex? Male   Female  

  3. 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 [ ]

  4. What is your age of first sexual encounter? .......................

  5. Do you actively practice religion? Yes [ ] No [ ]

  6. How many partners you had sex with in the last 12 months? ...................

  7. How many of these partners did you use condom with in the last 12 months? ................

  8. 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

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Hypothesis Tests and Confidence Intervals for Means
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman