mysteries {SDAResources}R Documentation

mysteries data

Description

Data from a stratified random sample of books nominated for the Edgar awards for Best Novel and Best First Novel. The sample was drawn from the population listing of 655 books at
http://theedgars.com/awards/ on August 14, 2020.

Usage

data(mysteries)

Format

This data frame contains the following columns:

stratum:

stratum number, from 1 to 12, computed from the stratification variables in columns 2-4

time:

time period in which award was given:

1 = 1946-1980

2 = 1981-2000

3 = 2001-2020

category:

award category (character variable, length 16): Best Novel, or Best First Novel

winner:

= 1 if book won the award that year

= 0 if book was nominated but did not win award

popsize:

number of population books in stratum ( = N_h)

sampsize:

number of sampled books in stratum ( = n_h)

obtained:

= 1 if book was obtained (responded) in original sample

= 2 if book was obtained in phase II subsample of nonrespondents

= 0 if not obtained

p1weight:

weight for phase I sample, calculated as N_h/n_h; use for exercises in Chapters 1-11 of SDA

p2weight:

final weight for phase II sample; use for exercises in Chapter 12 of SDA and analyses involving variables victims and firearm

genre:

genre of book (character variable, length 11).

"private eye" (protagonist is a private detective)

"procedural" (a detailed, step-by-step analysis of how the crime is solved, using the skills of the detective)

"suspense" (the protagonist is at the center of action or is involved in espionage, but is not a professional detective)

historical:

= 1 if the main action in the book takes place at least 20 years before the book's publication date

= 0 if book action is within 20 years of the publication date

urban:

= 1 if the main action in the book takes place primarily in urban areas

= 0 otherwise

authorgender:

gender of author (character variable, length 1)

= "F" if author is female

= "M" if author is male

fdetect:

number of female detectives (or protagonists, if book has no detective) in book

mdetect:

number of male detectives (or protagonists, if book has no detective) in book

victims:

number of murder victims in book (missing value set to NA if obtained = 0)

firearm:

number of murders committed with firearms in book (missing value set to NA if obtained = 0)

References

Lohr (2021), Sampling: Design and Analysis, 3rd Edition. Boca Raton, FL: CRC Press.

Lu and Lohr (2021), R Companion for Sampling: Design and Analysis, 3rd Edition, 1st Edition. Boca Raton, FL: CRC Press.


[Package SDAResources version 0.1.1 Index]