Learn R Programming

fastR (version 0.10.3)

littleSurvey: Results from a little survey

Description

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.

Arguments

Format

A data frame with 279 observations on the following 20 variables.

  • number a number between 1 and 30

  • colorVer which version of the 'favorite color' question was on the survey. A factor with levels v1 v2

  • color favorite color if among predefined choices. A factor with levels black green other purple red

  • otherColor favorite color if not among choices above.

  • animalVer which version of the 'favorite color' question was on the survey. A factor with levels v1 v2

  • animal favorite animal if among predefined choices. A factor with levels elephant giraffe lion other.

  • otherAnimal favorite animal if not among the predefined choices.

  • pulseVer which version of the 'pulse' question was on the survey

  • pulse self-reported pulse

  • TVver which of three versions of the TV question was on the survey

  • tvBox a factor with levels <1 >4 >8 1-2 2-4 4-8 none other

  • tvHours a numeric vector

  • surpriseVer which of two versions of the 'surprise' question was on the survey

  • surprise a factor with levels no yes

  • playVer which of two versions of the 'play' question was on the survey

  • play a factor with levels no yes

  • diseaseVer which of two versions of the 'play' question was on the survey

  • disease a factor with levels A B

  • homeworkVer which of two versions of the 'homework' question was on the survey

  • homework a factor with levels A B

Examples

Run this code
# NOT RUN {
data(littleSurvey)
xtabs(~surprise+surpriseVer, data=littleSurvey)
xtabs(~disease+diseaseVer, data=littleSurvey)

# }

Run the code above in your browser using DataLab