The Fahrmeir Package

Similar documents
Package Fahrmeir. May 31, 2016

Package CompareTests

Ward Headstrom Institutional Research Humboldt State University CAIR

Basic Biostatistics. Chapter 1. Content

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

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

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

Package speff2trial. February 20, 2015

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

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

Package citccmst. February 19, 2015

New Patient Form Date:

Package inctools. January 3, 2018

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

Weight Adjustment Methods using Multilevel Propensity Models and Random Forests

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

Package ICCbin. November 14, 2017

Package AbsFilterGSEA

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

Van Wyk Chiropractic Center Terms of Acceptance and Privacy Policy

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

Notto Chiropractic Health Center Patient Information

Spine New Patient Questionnaire Rev

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

Package mediation. September 18, 2009

PATIENT HEALTH HISTORY FORM:

Challenges of Observational and Retrospective Studies

Screening and Referral. Unit: Programming Pilates Matwork

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

Midterm Exam ANSWERS Categorical Data Analysis, CHL5407H

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

MERCY HOUSE RESIDENT APPLICATION FORM

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

FACT SHEET Q Fever and the Australian Q Fever Register

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

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

Dental insurance: A bright idea for your business

Package xseq. R topics documented: September 11, 2015

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

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?

Analysis of Rheumatoid Arthritis Data using Logistic Regression and Penalized Approach

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

Folate intake in pregnancy and psychomotor development at 18 months

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

Analyzing diastolic and systolic blood pressure individually or jointly?

POL 242Y Final Test (Take Home) Name

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

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

Package labstats. December 5, 2016

Chapter 4. More On Bivariate Data. More on Bivariate Data: 4.1: Transforming Relationships 4.2: Cautions about Correlation

Diet Quality and History of Gestational Diabetes

ASSIGNMENT OF BENEFITS

Section 6: Analysing Relationships Between Variables

WAIVER AND RELEASE FROM LIABILITY

An Analysis of Factors Related to Alcohol, Tobacco, Marijuana, and Drug Use among Adolescents Based on the Iowa Youth Survey

Propensity Score Analysis: Its rationale & potential for applied social/behavioral research. Bob Pruzek University at Albany

Lifestyle/Readiness for Change Assessment

CASE HISTORY. Address: City: State: Zip: Date of Birth: Age: address: Occupation: Employer: Spouse's Employer: Referred by:

CHIROPRACTIC EXPERIENCE ABOUT YOU REASON FOR THIS VISIT HEALTH HABITS MEDICATIONS YOU TAKE SUPPLEMENTS YOU TAKE

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

PERIODIC ASBESTOS MEDICAL QUESTIONNAIRE

ACREU RHEUMATOID ARTHRITIS QUESTIONNAIRE: YOUR ARTHRITIS AND YOU

SAMPLE 100 DAY JOURNEY GLOBAL BASELINE REPORT

SEEDS OF HOPE FAMILY CHIROPRACTIC HEALTH HISTORY

Reproductive Technology, Genetic Testing, and Gene Therapy

Worker s Compensation Form

St. Mary s Hospital Foundation Scholarship Program. Deadline: Must be postmarked by March 15, 2016

1 Version SP.A Investigate patterns of association in bivariate data

The Meaning of the November Ballot Initiative to Legalize Recreational Marijuana

Mental Health Program Designed for Men & Women Seeking Help with Mental Health Problems

PATIENT INFORMATION. Last Name First Name MI. Address. City State Zip. Cell Phone _( ) Home Phone _( ) May we contact you by ?

Package AIMS. June 29, 2018

Recent Research in Psychology

Candida Questionnaire: Are your health problems yeast connected?

NEW PATIENT PAPERWORK

How to describe bivariate data

INITIAL ASSESSMENT (TCU METHADONE OUTPATIENT FORMS)

Huron Medical Sleep Center Saad S. Ahmad, MD

Chiropractic Case History/Patient Information

Survey of Smoking, Drinking and Drug Use (SDD) among young people in England, Andrew Bryant

Variables and Data. Gbenga Ogunfowokan Lead, Nigerian Regional Faculty The Global Health Network 19 th May 2017

!!!!!!!! Aisha Habeeb AL0117. Assignment #2 Part 3. Wayne State University

SOME NOTES ON STATISTICAL INTERPRETATION

Information & Health History Form

MJ - Decision on Manuscript ID BMJ

Chapter 17 Sensitivity Analysis and Model Validation

1.0 Abstract. Title. Keywords. Rationale and Background

Please fill out completely. FACTORS OF COMPLAINT

Exercise. Good Weight A PT E R. Staying Healthy

Transcription:

The Fahrmeir Package September 30, 2007 Version 0.4 Date 2007-09-28 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 Halvorsen Maintainer Kjetil 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, version 1, by Ludwig Fahrmeir and Gerhard Tutz License GPL (>= 2) R topics documented: Regensburg......................................... 2 breath............................................ 3 caesar............................................ 4 cells............................................. 5 credit............................................ 6 happy............................................ 7 headneck.......................................... 8 ohio............................................. 9 rheuma........................................... 10 tonsil............................................ 11 visual............................................ 12 wine............................................. 13 Index 14 1

2 Regensburg 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. 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) summary(regensburg.polr) class(regensburg.polr)

breath 3 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.

4 caesar 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

cells 5 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) 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

6 credit 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) 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.

happy 7 Fahrmeier and Tutz, Multivariate Generalized Linear Models, Springer Verlag. summary(credit) 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)

8 headneck headneck Head and Neck Cancer data Data from a head and neck cancer study where time was discretized by one-month intervals. data(headneck) 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 9 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 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)

10 rheuma 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)

tonsil 11 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)

12 visual 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 : 16obs.of4variables :.. left: Factor w/ 2 levels "no","yes": 2 1 2 1 2 1 2 1 2 1.....race : F actorw/2levels black, white : 2222222211... age : Factor w/ 4 levels "40-50","51-60",..: 1 1 2 2 3 3 4 4 1 1.....n : int[1 : 16]15617245574278913967329750... right: data.frame : 16 obs. of 4 variables:..right : F actorw/2levels no, yes : 2121212121... race : Factor w/ 2 levels "black","white": 2 2 2 2 2 2 2 2 1 1.....age : F actorw/4levels 40 50, 51 60,.. : 1122334411... n : int [1:16] 19 613 25 556 48 783 146 666 31 748... str(visual) summary(visual)

wine 13 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) 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, 5 credit, 6 happy, 7 headneck, 8 ohio, 9 Regensburg, 1 rheuma, 10 tonsil, 11 visual, 12 wine, 13 breath, 2 caesar, 3 cells, 5 credit, 6 happy, 7 headneck, 8 ohio, 9 Regensburg, 1 rheuma, 10 tonsil, 11 visual, 12 wine, 13 14