Package ‘faraway’

Transcription

Package ‘faraway’February 15, 2016Version 1.0.7Date 2016-02-12Author Julian Faraway jjf23@bath.ac.uk Maintainer Julian Faraway jjf23@bath.ac.uk Title Functions and Datasets for Books by Julian FarawayDescriptionBooks are Practical Regression and ANOVA in R'' on CRAN, Linear Models with R'' published 1st Ed. August 2004, 2nd Ed. July 2014 by CRC press, ISBN 9781439887332, and Extending the Linear Model with R'' published by CRC press in 1st Ed. December 2005 and 2nd Ed. March 2016, ISBN 9781584884248.Depends R ( 2.10)License GPLURL http://people.bath.ac.uk/jjf23/LazyData yesImports lme4,nlme,methodsNeedsCompilation noRepository CRANDate/Publication 2016-02-15 15:07:03R topics documented:aatemp . . .abrasion . .aflatoxin . .africa . . .airpass . . .alfalfa . . .amlxray . .anaesthetic .babyfood .beetle . . .1. 5. 5. 6. 6. 7. 8. 9. 9. 10. 11

R topics documented:2bliss . . . .breaking . .broccoli . .butterfat . .cathedral . .cheddar . .chicago . .chiczip . . .chmiss . . .choccake .chredlin . .clot . . . .cmob . . .cns . . . . .coagulationcomposite .cornnit . . .corrosion .cpd . . . . .Cpplot . . .crawl . . .ctsib . . . .death . . . .debt . . . .denim . . .diabetes . .dicentric . .divusa . . .drugpsy . .dvisits . . .eco . . . . .eggprod . .eggs . . . .epilepsy . .esdcomp . .exa . . . . .exb . . . . .eyegrade . .fat . . . . .femsmoke .fortune . . .fpe . . . . .fround . . .fruitfly . . .gala . . . .gammaray .gavote . . .globwarm 72829303031323333343536363737383940414242434445

R topics documented:haireye . . . .halfnorm . . .happy . . . .hemoglobin .hips . . . . .hormone . . .hprice . . . .hsb . . . . . .ilogit . . . . .infmort . . .insulgas . . .irrigation . .jsp . . . . . .kanga . . . .lawn . . . . .leafblotch . .leafburn . . .logit . . . . .mammalsleepmanilius . . .maxadjr . . .meatspec . .melanoma . .motorins . . .neighbor . . .nels88 . . . .nepali . . . .nes96 . . . .newhamp . .oatvar . . . .odor . . . . .ohio . . . . .orings . . . .ozone . . . .parstum . . .peanut . . . .penicillin . .phbirths . . .pima . . . . .pipeline . . .pneumo . . .potuse . . . .prostate . . .prplot . . . .psid . . . . .pulp . . . . .punting . . .pvc . . . . . 3646565666768696970707172727374747576777778797980

R topics documented:4pyrimidines .qqnorml . . .rabbit . . . .ratdrink . . .rats . . . . . .resceram . . .salmonella . .sat . . . . . .savings . . .seatpos . . . .seeds . . . . .semicond . .sexab . . . .sexfun . . . .snail . . . . .solder . . . .sono . . . . .soybean . . .spector . . . .speedo . . . .star . . . . . .stat500 . . . .stepping . . .strongx . . .suicide . . . .sumary . . . .teengamb . .toenail . . . .troutegg . . .truck . . . . .turtle . . . . .tvdoctor . . .twins . . . . .uncviet . . . .uswages . . .vif . . . . . .vision . . . .wafer . . . .wavesolder .wbca . . . . .wcgs . . . . .weldstrength .wheat . . . .worldcup . 09111111112114

aatempaatemp5Annual mean temperatures in Ann Arbor, MichiganDescriptionThe data comes from the U.S. Historical Climatology Network.Usagedata(aatemp)FormatA data frame with 115 observations on the following 2 variables.year year from 1854 to 2000temp annual mean temperatures in degrees F in Ann ArborSourceUnited States Historical Climatology Network: /ushcn.htmlabrasionWear on materials according to type, run and positionDescriptionThe composite data frame has 16 rows and 4 columns. Four materials were fed into a wear testingmachine and the amount of wear recorded. Four samples could be processed at the same time andthe position of these samples may be important. A Latin square design was used.Usagedata(abrasion)FormatThis data frame contains the following columns:run The run number 1-4position The position number 1-4material The material A-Dwear The wear measured loss of weight in 0.1mm over testing periodSourceThe Design and Analysis of Industrial Experiments by O. Davies, 1954, published by Wiley

6africaaflatoxinaflatoxin dosage and liver cancer in lab animalsDescriptionAflatoxin B1 was fed to lab animals at vary doses and the number responding with liver cancerrecorded.Usagedata(aflatoxin)FormatA data frame with 6 observations on the following 3 variables.dose dose in ppbtotal number of test animalstumor number with liver cancerSourceGaylor DW (1987) "Linear nonparametric upper limits for low dose extrapolation" ASA Proceedings of the Biopharmaceutical Section.Examplesdata(aflatoxin)africamiltary coups and politics in sub-Saharan AfricaDescriptionData is a subset of a larger study on factors affecting regime stability in Sub-Saharan AfricaUsagedata(africa)

airpass7FormatA data frame with 47 observations on the following 9 variables.miltcoup number of successful military coups from independence to 1989oligarchy number years country ruled by military oligarchy from independence to 1989pollib Political liberalization - 0 no civil rights for political expression, 1 limited civil rightsfor expression but right to form political parties, 2 full civil rightsparties Number of legal political parties in 1993pctvote Percent voting in last electionpopn Population in millions in 1989size Area in 1000 square kmnumelec Total number of legislative and presidential electionsnumregim Number of regime typesSourceBratton, Michael, and Nicholas Van De Walle. 1997. “Political Regimes and Regime Transitions inAfrica, 1910-1994.” Study Number I06996. Ann Arbor: Inter-University Consortium for Politicaland Social Research.References"Bayesian Methods: A Social and Behavioral Sciences Approach" by Jeff Gill 2002.airpassAirline passengersDescriptionMonthly totals of airline passengers from 1949 to 1951Usagedata(airpass)FormatA data frame with 144 observations on the following 2 variables.pass number of passengers in thousandsyear the date as a decimalDetailsWell known time series example dataset

8alfalfaSourceBrown, R.G.(1962) Smoothing, Forecasting and Prediction of Discrete Time Series. EnglewoodCliffs, N.J.: Prentice-Hall.ReferencesBox, G.E.P., Jenkins, G.M. and Reinsel, G.C. (1994) Time Series Analysis, Forecasting and Control,3rd edn. Englewood Cliffs, N.J.: Prentice-Hall.Examplesdata(airpass)## maybe str(airpass) ; plot(airpass) .alfalfaEffects of seed inoculum, irrigation and shade on alfalfa yieldDescriptionThe alfalfa data frame has 25 rows and 4 columns. Data comes from an experiment to test theeffects of seed inoculum, irrigation and shade on alfalfa yield. A latin square design has been used.Usagedata(alfalfa)FormatThis data frame contains the following columns:shade Distance of location from tree line divided into 5 shade areasirrigation Irrigation effect divided into 5 levelsinoculum Four types of seed incolum, A-D with E as control.yield Dry matter yield of alfalfaSourcePetersen, R.G. 1994. Agricultural Field Experiments, Design and Analysis. Marcel Dekker, Inc.,New York. Pages 70-74. 1994

amlxrayamlxray9Match pair study for AML and Xray linkDescriptionA matched case control study carried out to investigate the connection between X-ray usage andacute myeloid leukemia in childhood. The pairs are matched by age, race and county of residence.Usagedata(amlxray)FormatA data frame with 238 observations on the following 11 variables.ID a factor denoting the matched pairsdisease 0 control, 1 caseSex F or Mdowns Presence of Downs syndrome: no or yesage Age in yearsMray Did the mother ever have an Xray: no or yesMupRay Did the mother have an Xray of the upper body during pregnancy: no or yesMlowRay Did the mother have an Xray of the lower body during pregnancy: no or yesFray Did the father ever have an Xray: no or yesCray Did the child ever have an Xray: no or yesCnRay Total number of Xrays of the child 1

irrigation Irrigation effect divided into 5 levels inoculum Four types of seed incolum, A-D with E as control. yield Dry matter yield of alfalfa Source Petersen, R.G. 1994. Agricultural Field Experiments, Design and Analysis. Marcel Dekker, Inc., New York. Pages 70-74. 1994