Description Usage Format Examples
These data are from a little survey given to a number of students in introductory statistics courses. Several of the items were prepared in multiple versions and distributed randomly to the students.
1 |
A data frame with 279 observations on the following 20 variables.
numbera number between 1 and 30
colorVerwhich version of the 'favorite color' question
was on the survey. A factor with levels v1 v2
colorfavorite color if among predefined
choices. A factor with levels
black green other purple red
otherColorfavorite color if not among choices above.
animalVerwhich version of the 'favorite color' question
was on the survey. A factor with levels v1 v2
animalfavorite animal if among predefined choices.
A factor with levels
elephant giraffe lion other.
otherAnimalfavorite animal if not among the predefined choices.
pulseVerwhich version of the 'pulse' question was on the survey
pulseself-reported pulse
TVverwhich of three versions of the TV question was on the survey
tvBoxa factor with levels <1 >4 >8 1-2 2-4 4-8 none other
tvHoursa numeric vector
surpriseVerwhich of two versions of the 'surprise' question was on the survey
surprisea factor with levels no yes
playVerwhich of two versions of the 'play' question was on the survey
playa factor with levels no yes
diseaseVerwhich of two versions of the 'play' question was on the survey
diseasea factor with levels A B
homeworkVerwhich of two versions of the 'homework' question was on the survey
homeworka factor with levels A B
1 2 3 | data(littleSurvey)
xtabs(~surprise+surpriseVer,littleSurvey)
xtabs(~disease+diseaseVer,littleSurvey)
|
Loading required package: mosaic
Loading required package: dplyr
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
Loading required package: lattice
Loading required package: ggformula
Loading required package: ggplot2
Loading required package: ggstance
Attaching package: 'ggstance'
The following objects are masked from 'package:ggplot2':
GeomErrorbarh, geom_errorbarh
New to ggformula? Try the tutorials:
learnr::run_tutorial("introduction", package = "ggformula")
learnr::run_tutorial("refining", package = "ggformula")
Loading required package: mosaicData
Loading required package: Matrix
The 'mosaic' package masks several functions from core packages in order to add
additional features. The original behavior of these functions should not be affected by this.
Note: If you use the Matrix package, be sure to load it BEFORE loading mosaic.
Attaching package: 'mosaic'
The following object is masked from 'package:Matrix':
mean
The following object is masked from 'package:ggplot2':
stat
The following objects are masked from 'package:dplyr':
count, do, tally
The following objects are masked from 'package:stats':
IQR, binom.test, cor, cor.test, cov, fivenum, median, prop.test,
quantile, sd, t.test, var
The following objects are masked from 'package:base':
max, mean, min, prod, range, sample, sum
Loading required package: mosaicCalc
Loading required package: mosaicCore
Attaching package: 'mosaicCore'
The following objects are masked from 'package:dplyr':
count, tally
Attaching package: 'mosaicCalc'
The following object is masked from 'package:stats':
D
Attaching package: 'fastR'
The following object is masked from 'package:graphics':
panel.smooth
surpriseVer
surprise v1 v2
no 118 99
yes 24 37
diseaseVer
disease v1 v2
A 71 53
B 73 81
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.