Package Fahrmeir. May 31, 2016

Similar documents
The Fahrmeir Package

Package CompareTests

Package citccmst. February 19, 2015

Package appnn. R topics documented: July 12, 2015

Package AbsFilterGSEA

Package ordibreadth. R topics documented: December 4, Type Package Title Ordinated Diet Breadth Version 1.0 Date Author James Fordyce

Package speff2trial. February 20, 2015

ivlewbel: Uses heteroscedasticity to estimate mismeasured and endogenous regressor models

Package ICCbin. November 14, 2017

Package nopaco. R topics documented: April 13, Type Package Title Non-Parametric Concordance Coefficient Version 1.0.

Package inctools. January 3, 2018

Package propoverlap. R topics documented: February 20, Type Package

Package labstats. December 5, 2016

Package xseq. R topics documented: September 11, 2015

Package GANPAdata. February 19, 2015

Package p3state.msm. R topics documented: February 20, 2015

Package HAP.ROR. R topics documented: February 19, 2015

Package clust.bin.pair

Package inote. June 8, 2017

Package frailtyhl. February 19, 2015

Package pollen. October 7, 2018

Ward Headstrom Institutional Research Humboldt State University CAIR

Package rvtdt. February 20, rvtdt... 1 rvtdt.example... 3 rvtdts... 3 TrendWeights Index 6. population control weighted rare-varaints TDT

Package mediation. September 18, 2009

Package xmeta. August 16, 2017

Basic Biostatistics. Chapter 1. Content

Package QualInt. February 19, 2015

Package PELVIS. R topics documented: December 18, Type Package

Package medicalrisk. August 29, 2016

Mental health and substance use among US adults: An analysis of 2011 Behavioral Risk Factor Surveillance Survey

Package tumgr. February 4, 2016

Dr. Hall New Patient Paperwork Please fill out these forms completely

Package prognosticroc

PATIENT INFORMATION. Address: Street City State Zip Home phone: Work phone: Cell phone: address: Patient s or parent s employer: Occupation:

Package Actigraphy. R topics documented: January 15, Type Package Title Actigraphy Data Analysis Version 1.3.

Package ExactCIdiff. February 15, 2013

Package ega. March 21, 2017

Package wally. May 25, Type Package

Title:The self-reported health of U.S. flight attendants compared to the general population

Package ORIClust. February 19, 2015

Package RNAsmc. December 11, 2018

Package SAMURAI. February 19, 2015

Applied Medical. Statistics Using SAS. Geoff Der. Brian S. Everitt. CRC Press. Taylor Si Francis Croup. Taylor & Francis Croup, an informa business

The Pennsylvania State University. The Graduate School. Department of Public Health Sciences

New Patient Form Date:

Package diggitdata. April 11, 2019

Chapter 17 Sensitivity Analysis and Model Validation

Package StepReg. November 3, 2017

Package preference. May 8, 2018

Package hei. August 17, 2017

Package memapp. R topics documented: June 2, Version 2.10 Date

Ethnicity and Maternal Health Care Utilization in Nigeria: the Role of Diversity and Homogeneity

HEALTH RECORD REASON FOR THIS VISIT ABOUT YOU ABOUT YOUR SPOUSE HEALTH HABITS EXPERIENCE WITH CHIROPRACTIC

Intro to SPSS. Using SPSS through WebFAS

Package AIMS. June 29, 2018

Package ncar. July 20, 2018

Package Interpol. R topics documented: February 19, Type Package. Title Interpolation of amino acid sequences. Version

Weight Adjustment Methods using Multilevel Propensity Models and Random Forests

Package longroc. November 20, 2017

Statistical Reasoning in Public Health Biostatistics 612, 2009, HW#3

Predictive statistical modelling approach to estimating TB burden. Sandra Alba, Ente Rood, Masja Straetemans and Mirjam Bakker

Package singlecase. April 19, 2009

Dear Prospective Degree Completion Dental Hygiene Student:

ABOUT YOU CHIROPRACTIC EXPERIENCE REASON FOR THIS VISIT ABOUT YOUR SPOUSE HEALTH HABITS

Poisson regression. Dae-Jin Lee Basque Center for Applied Mathematics.

World - World Bank ToxInt Database 1996, Intensity of Toxic Pollution from Industry

Package BCRA. April 25, 2018

Van Wyk Chiropractic Center Terms of Acceptance and Privacy Policy

Notto Chiropractic Health Center Patient Information

9834 Genesee, Suite 223B La Jolla, CA Phone Fax

Spine New Patient Questionnaire Rev

PATIENT HEALTH HISTORY FORM:

Package mdsdt. March 12, 2016

Challenges of Observational and Retrospective Studies

Ashwini S Erande MPH, Shaista Malik MD University of California Irvine, Orange, California

Screening and Referral. Unit: Programming Pilates Matwork

Prediction Model For Risk Of Breast Cancer Considering Interaction Between The Risk Factors

Midterm Exam ANSWERS Categorical Data Analysis, CHL5407H

FACT SHEET Q Fever and the Australian Q Fever Register

MERCY HOUSE RESIDENT APPLICATION FORM

The Beverage of Life. Skill: Science, Health. Vocabulary. Objectives: Materials. Time Frame: minutes. Lesson Preparation.

REANALYSIS OF THE NATIONAL CANCER INSTITUTE S ACRYLONITRILE COHORT STUDY BY IMPUTATION OF MISSING SMOKING INFORMATION. Michael A.

Pinkston Psychology, LLC Ph. (318) Fx. (318) Completed this form Patient Spouse Parent Other

History & Review of Systems Screening. Medical History

Name Date Date of Birth Last Name First Name Middle Initial. Employment Information

I choose not to specify

Simple Sensitivity Analyses for Matched Samples Thomas E. Love, Ph.D. ASA Course Atlanta Georgia

Predictors of Cigarette Smoking Behavior Among Military University Students in Taiwan. Wang, Kwua-Yun; Yang, Chia-Chen

Dental insurance: A bright idea for your business

Analysis of Environmental Data Conceptual Foundations: En viro n m e n tal Data

710 Oakfield Drive, Suite 153 P: (813) Brandon, FL F: (813) Client Information - Adult form

Package bionetdata. R topics documented: February 19, Type Package Title Biological and chemical data networks Version 1.0.

Analysis of Rheumatoid Arthritis Data using Logistic Regression and Penalized Approach

Day 0. On a Scale of 1-10 (10=BEST) Save and close this document and come back on Day 7. Do you take thyroid supplements or drugs?

Folate intake in pregnancy and psychomotor development at 18 months

STAT 151B. Administrative Info. Statistics 151B: Introduction Modern Statistical Prediction and Machine Learning. Overview and introduction

Package noia. February 20, 2015

Analyzing diastolic and systolic blood pressure individually or jointly?

POL 242Y Final Test (Take Home) Name

HEPATITIS B INFECTION and Pregnancy. Caesar Mensah Communicable Diseases & Infection Control Specialist, UK June 2011

Transcription:

Version 2016.5.31 Date 2016-05-31 Package Fahrmeir May 31, 2016 Title Data from the Book ``Multivariate Statistical Modelling Based on Generalized Linear Models'', First Edition, by Ludwig Fahrmeir and Gerhard Tutz Author compiled by Kjetil B Halvorsen Maintainer Kjetil B Halvorsen <kjetil1001@gmail.com> Depends stats, R (>= 2.1.0) Suggests MASS LazyData TRUE Data and functions for the book ``Multivariate Statistical Modelling Based on Generalized Linear Models'', first edition, by Ludwig Fahrmeir and Gerhard Tutz. Useful when using the book. License GPL (>= 2) NeedsCompilation no Repository CRAN Date/Publication 2016-05-31 23:18:11 R topics documented: breath............................................ 2 caesar............................................ 3 cells............................................. 4 credit............................................ 5 happy............................................ 6 headneck.......................................... 6 ohio............................................. 7 Regensburg......................................... 8 rheuma........................................... 9 tonsil............................................ 10 visual............................................ 11 wine............................................. 11 1

2 breath Index 13 breath Breathing Test Effects of age and smoking status on breathing test results for workers in industrial plants in Texas. data(breath) A data frame with 18 observations on the following 4 variables. Age a factor with levels <40 40-59 n number of workers in group Smoking.status a factor with levels Current.smoker Former.smoker Never.smoked Breathing.test a factor with levels Abnormal Borderline Normal We consider the effects of age and smoking status upon breathing test results for workers in industrial plants in Texas. The test results are given on an ordered scale with categories "Abnormal", "Borderline" and "Normal". It is of interest how age and smoking status are connected to breathing test results. str(breath) breath$breathing.test <- ordered(breath$breathing.test) library(mass) breath.polr1 <- polr(breathing.test ~ Age*Smoking.status, weight=n, data=breath) breath.polr2 <- polr(breathing.test ~ Age*Smoking.status, weight=n, data=breath, method="cloglog") summary(breath.polr1) summary(breath.polr2) # continuation ratio models (as of page 89) might be fitted with # Design or VGAM package.

caesar 3 caesar Caesarian Birth Study Data on infection from births by Caesarian section data(caesar) A data frame with 24 observations on the following 7 variables. y a factor with levels 1 2 3, the response w number of patients in group noplan a factor with levels not planned, was the caesarian planned? factor a factor with levels risk factors without, was there risk factors? antib a factor with levels antibiotics without yl logistic response, 0=no infection patco covariate pattern number Infection from birth by Caesarian section. The response variable, y, has levels 1=type I infection, 2=type II infection, 3=none infection. Where risk-factors (diabetes, overweight, others) present? Where antibiotics used as prophylaxis? Aim is to analyse effects on response by covariates. Author(s) Kjetil Halvorsen summary(caesar) caesar.glm1 <- glm(yl ~ noplan+factor+antib, data=caesar, weight=w, family=binomial(link="logit")) caesar.glm2 <- glm(yl ~ noplan+factor+antib, data=caesar, weight=w, family=binomial(link="probit")) summary(caesar.glm1) summary(caesar.glm2)

4 cells cells Cellular Differentiation The effect of two agents of immuno-activating ability that may induce cell differentiation was investigated. data(cells) A data frame with 16 observations on the following 3 variables. y number of cells differentiating TNF dose of TNF, U/ml IFN dose of IFN, U/ml The effect of two agents of immuno-activating ability that may induce cell differentiation was investigated. As response variable the number of cells that exhibited markers after exposure was recorded. It is of interest if the agents TNF (tumor necrosis factor) and IFN (interferon) stimulate cell differentiation independently, or if there is a synergetic effect. 200 cells were examined at each dose combination. Author(s) Kjetil Halvorsen str(cells) cells.poisson <- glm(y~tnf+ifn+tnf:ifn, data=cells, family=poisson) summary(cells.poisson) confint(cells.poisson) # Now we follow the book, example 2.6, page 51: # there seems to be overdispersion? cells.quasi <- glm(y~tnf+ifn+tnf:ifn, data=cells, family=quasipoisson)

credit 5 summary(cells.quasi) anova(cells.quasi) confint(cells.quasi) # We follow the book, example 2.7, page 56: with(cells, tapply(y, factor(tnf), function(x) c(mean(x), var(x)))) # which might indicate the use of a negative binomial model credit Credit Score Data From a South German Bank The credit data frame has 1000 rows and 8 columns. This are data for 1000 clients of a south german bank, 700 good payers and 300 bad payers. They are used to construct a credit scoring method. data(credit) This data frame contains the following columns: Y a factor with levels buen mal, the response variable. buen is the good payers. Cuenta a factor with levels no good running bad running, quality of the credit clients bank account. Mes a numeric vector, duration of loan in months. Ppag a factor with levels pre buen pagador pre mal pagador, if the client previosly have been a good or bad payer. Uso a factor with levels privado profesional, the use to which the loan is made. DM a numeric vector, the size of loan in german marks. Sexo a factor with levels mujer hombre, sex of the client. Estc a factor with levels no vive solo vive solo, civil state of the client. Fahrmeier and Tutz, Multivariate Generalized Linear Models, Springer Verlag. summary(credit)

6 headneck happy Reported Happiness Relationship between sex, years in school, and reported happiness. data(happy) A data frame with 24 observations on the following 4 variables. Rep.happiness an ordered factor with levels Not to happy < \ codepretty happy < Very happy School a factor with levels <12 >16 12 13-16 Sex a factor with levels Females Males n number of persons in group str(happy) table(happy) headneck Head and Neck Cancer data Data from a head and neck cancer study where time was discretized by one-month intervals. data(headneck)

ohio 7 A data frame with 47 observations on the following 4 variables. month a numeric vector atrisk a numeric vector, number at risk deaths a numeric vector withdrawals a numeric vector str(headneck) summary(headneck) with(headneck, {plot(month, atrisk, type="s"); lines(month, deaths, type="s", col="red"); lines(month, withdrawals, type="s", col="green")}) ohio Air Pollution and Health Air Pollution and Health, annual data on children 7 to ten years old in Ohio. data(ohio) A data frame with 32 observations on the following 6 variables. a7 Presence (1) or absence (0) of respiratory infection a8 Presence (1) or absence (0) of respiratory infection a9 Presence (1) or absence (0) of respiratory infection a10 Presence (1) or absence (0) of respiratory infection mother.smoke a factor with levels no yes n number of children

8 Regensburg Within the harvard Study of Air Pollution and Health, 537 children were examined annually from age 7 to 10, on the presence or absence of respiratory infection. So there are four repeated measurements on each child, or "short time series". The only available covariate is mothers smoking status at start of study. str(ohio) summary(ohio) Regensburg Job Expectation A sample of psychology students was asked if they expected to find adecuate employment after graduation. data(regensburg) A data frame with 30 observations on the following 4 variables. y response categories n number of students with this response in group age age in years lage natural log of age In a study on the perspectives of students, psychology students at the university of Regensburg have been asked if they expect to find an adequate employment after getting their degree. The response categories where ordered with respect to their expectation. Categories where "don t expect adequate employment" - 1, "not sure" - 2, "immediately after the degree" - 3.

rheuma 9 str(regensburg) summary(regensburg) # Example 3.5 page 83 in book: library(mass) Regensburg$y <- ordered(regensburg$y) Regensburg.polr <- polr(y~lage, data=regensburg, weights = n) summary(regensburg.polr) class(regensburg.polr) rheuma Data from Patients with Acute Rheumatoid Arthritis Data from patients with acute rheumathoid arthritis. A new agent was compared with an active control, and each patient was evaluated on a five-point assessment scale. data(rheuma) A data frame with 10 observations on the following 3 variables. Drug a factor with levels Active.control New.agent Improvement an ordered factor with levels Much.worse < Worse < No.change < Improved < Much.improved n number of patients in group The global assessment in this example may be subdivided in the coarse response "improvement", "no change" and "worse". On a higher level improvement is split into "much improved" and "improved", while the "worse" category is split into "worse" and "much worse". str(rheuma) summary(rheuma)

10 tonsil tonsil Data Set of Tonsil Size in Children Children have been classified according to their relative tonsil size and wheater or not they are carriers of Streptococcus pyogenes. data(tonsil) A data frame with 6 observations on the following 3 variables. Streptococcus.p a factor with levels carriers noncarriers Size numeric, 1, 2 or 3, tonsil size n number of children in group It may be assumed that tonsil size always starts in the normal state "present but not enlarged" (category 1). If the tonsils grow abnormally, they may become "enlarged" (category 2), if the process does not stop, they may become "greatly enlarged" (category 3). str(tonsil) summary(tonsil)

visual 11 visual Visual Impairment Data For 5199 individuals bivariate binary responses were observed, indicating wheater or not an eye was visually impaired, with covariates. The main objective is to analyze the influence of age and race on visual impairment, controlling for education, a surrogate for socioeconomic status. Data are only given individually for right and left eye, the bivariate response is lost. data(visual) The format is: List of 2 $ left : data.frame : 16 obs. of 4 variables:..$ left: Factor w/ 2 levels "no","yes": 2 1 2 1 2 1 2 1 2 1.....$ race: Factor w/ 2 levels "black","white": 2 2 2 2 2 2 2 2 1 1.....$ age : Factor w/ 4 levels "40-50","51-60",..: 1 1 2 2 3 3 4 4 1 1.....$ n : int [1:16] 15 617 24 557 42 789 139 673 29 750... $ right: data.frame : 16 obs. of 4 variables:..$ right: Factor w/ 2 levels "no","yes": 2 1 2 1 2 1 2 1 2 1.....$ race : Factor w/ 2 levels "black","white": 2 2 2 2 2 2 2 2 1 1.....$ age : Factor w/ 4 levels "40-50","51-60",..: 1 1 2 2 3 3 4 4 1 1.....$ n : int [1:16] 19 613 25 556 48 783 146 666 31 748... str(visual) summary(visual) wine Bitterness of White Wines In a study on the bitterness of white wine it is of interest wheater treatments that can be controlleds during pressing the grapes influence the bitterness of wines. The two factors considered are the temperature and the admission of contact with skin when pressing the grapes. data(wine)

12 wine A data frame with 72 observations on the following 5 variables. temp a factor, temperature, with levels high low contact a factor with levels no yes bottle a factor with levels 1 2 3 4 5 6 7 8 judge a factor with levels 1 2 3 4 5 6 7 8 9 score numeric, ordinal score, from 1 =nonbitter to 5 =very bitter str(wine) summary(wine)

Index Topic datasets breath, 2 caesar, 3 cells, 4 credit, 5 happy, 6 headneck, 6 ohio, 7 Regensburg, 8 rheuma, 9 tonsil, 10 visual, 11 wine, 11 breath, 2 caesar, 3 cells, 4 credit, 5 happy, 6 headneck, 6 ohio, 7 Regensburg, 8 rheuma, 9 tonsil, 10 visual, 11 wine, 11 13