3. How was the data collected?
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
Related questions
Question

Transcribed Image Text:ivos c
3. How was the data collected?

Transcribed Image Text:## Warning: package 'mosaic' was built under R version 4.1.2
## Registered 53 method overwritten by 'mosaic':
method
from
fortify.SpatialIPolygonsDataFrame geplot2
* The 'mosaic' package masks several functions from core packages in order t
o add
additional features.
The original behavior of these functions should not
be affected by this.
e Attaching package: 'mosaic
** The following objects are masked from "package:dplyr:
count, do, tally
## The following object is masked from 'package:Matrix':
mean
ee The following object is masked from "package:ggplot2:
##
stat
e The following objects are masked from 'package:stats':
binom.test, cor, cor.test, cov, fivenum, IQR, median, prop.test,
quantile, sd, t.test, var
** The following objects are masked from 'package:base':
max, mean, min, prod, range, sample, sum
PHELPrct
## starting httpd help server ...
done
head (HELPrct)
age anysubstatus anysub cesd di daysanysub dayslink drugrisk e2b female
#1 37
2 37
177
2
e NA
e NA
1
49 3
225
yes
yes
yes
yes
30 22
39 e
NA
365
20 NA
#3 26
4 39
189
343
1
15 2
39 12
6 1
sex gib homeless i1 12 id indtot linkstatus 1ink
4
e 1
O NA
2
57
5 32
#6 47
yes
31
365
1
1
yes
pcs p
Ss fr
1 male yes
housed 13 26 1
1 yes 25.111990 58.41369
1
39
male yes homeless 56 62 2
43
NA NA> 26.670307 36.03694
male no
housed e @3
41
no 6.762923 74, 88633
13
4 female no
housed 5 54
28
no 43.967880 61.93168
11
male no honeless 10 13S
38
1 yes 21.675755 37.34558
10
6 fenale no housed 4 4 6
5
29
e no 55.508991 46.47521
# 1 black
e 2
racegrp satreat sexrisk substance treat avg drinks max drinks
4 cocaine
alcohol
13
56
26
62
no
yes
white
no
yes
black
no
heroin
no
white
black
black
* hospitalizations
heroin
cocaine
4
yes
no
6
cocaine
10
13
4.
no
no
no
yes
3.
22
1
12
tall(HELPret)
## 452 59
NA
<NA>
11 2
NA
365
0 1
## 453 45
NA
<NA>
35 1
NA
365
0 1
##
sex gib home less 11 12 id indtot linkstatus link
448
mcs
pcs
no 25.85177 50.60834
no 41.94307 56.96868
1 yes 62.17550 57.25384
no 33.43454 40.04572
no 54.42482 53.73204
no 30.21223 43.47607
pss_fr racegrp satreat sexrisk substance treat avg_drinks max_drinks
male no home less e e 453
housed 0 @ 454
housed 13 20 455
no homeless 1 24 460
no homeless 13 13 462
no homeless 51 51 463
36
##
449
## 450
## 451 female
male
по
38
39
male no
28
## 452
male
male
26
## 453
43
## 448
5 white
4
yes
heroin
no
# 449
7
white
no
4
heroin
alcohol
2
yes
e 450
e 451
11
white
no
yes
13
20
white
no
heroin
## 452
no
1
24
black
white
e 453
ves
9
cocaine
no
13
13
11
no
4
alcohol
no
51
51
hospitalizations
## 448
## 449
1
## 450
## 451
## 452
e 453
2
1
tally(sex, data-HELPrct)
## sex
## fenale
male
107
346
bargraph(sex, data-HELPrct)
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Recommended textbooks for you

MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc

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
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning

MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc

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
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning

Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON

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
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman