R Dataset / Package DAAG / cricketer
Documentation |
---|
On this Picostat.com statistics page, you will find information about the cricketer data set which pertains to Lifespans of UK 1st class cricketers born 1840-1960. The cricketer data set is found in the DAAG R package. You can load the cricketer data set in R by issuing the following command at the console data("cricketer"). This will load the data into a variable called cricketer. If R says the cricketer data set is not found, you can try installing the package by issuing this command install.packages("DAAG") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the cricketer R data set. The size of this file is about 189,301 bytes. Lifespans of UK 1st class cricketers born 1840-1960DescriptionYear and birth, lifespan, etc, of British first class cricketers, born 1840-1960, whose handedness could be determined from information in the Who's who of cricketers. The status (alive=0, dead =1), and lifetime or lifespan, is for 1992. Usagedata(cricketer) FormatA data frame with 5960 observations on the following 8 variables.
DetailsNote that those 'killed in action' (mostly during World Wars I and II) form a subset of those who died by accident. SourceJohn Aggleton, Martin Bland. Data were collated as described in Aggleton et al. ReferencesAggleton JP, Bland JM, Kentridge RW, Neave NJ 1994. Handedness and longevity: an archival study of cricketers. British Medical Journal 309, 1681-1684. Bailey P, Thorne P, Wynne-Thomas P. 1993. Who's Who of Cricketers. 2nd ed, London, Hamlyn. Bland M and Altman D. 2005. Do the left-handed die young? Significance 2, 166-170. See Also
Examplesdata(cricketer) numLH <- xtabs(~ left+year, data=cricketer) propLH <- prop.table(numLH, margin=2)[2,] yr <- as.numeric(colnames(numLH)) plot(propLH ~ yr) cricketer$lh <- unclass(cricketer$left)-1 left2.hat <- fitted(lm(lh ~ poly(year,2), data=cricketer)) ord <- order(cricketer$year) lines(left2.hat[ord] ~ cricketer$year[ord]) library(splines) ns3.hat <- fitted(lm(lh ~ ns(year,3), data=cricketer)) lines(ns3.hat[ord] ~ cricketer$year[ord], col="red") require(survival) summary(coxph(Surv(life, kia) ~ bs(year,3) +left, data=cricketer)) cricketer$notacdDead <- with(cricketer, {dead[acd==1]<-0; dead}) summary(coxph(Surv(life, notacdDead) ~ ns(year,2) +left, data=cricketer)) -- Dataset imported from https://www.r-project.org. |
Title | Authored on | Content type |
---|---|---|
R Dataset / Package psych / bfi | March 9, 2018 - 1:06 PM | Dataset |
OpenIntro Statistics Dataset - scotus_healthcare | August 9, 2020 - 2:38 PM | Dataset |
R Dataset / Package psych / withinBetween | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package Stat2Data / Kids198 | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package Ecdat / Wages1 | March 9, 2018 - 1:06 PM | Dataset |
Attachment | Size |
---|---|
dataset-24669.csv | 184.86 KB |