Skip to content
Prev 180824 / 398502 Next

Finding data association in R

Your problem is statistical and has nothing particularly to do with R.

It looks like homework to me.  

You may care to look at it this way:

###################
Call:
glm(formula = outcome ~ age, family = binomial, data = surgery)

Deviance Residuals: 
    Min       1Q   Median       3Q      Max  
-1.6601  -0.8099  -0.5839   1.0491   1.7079  

Coefficients:
             Estimate Std. Error z value Pr(>|z|)
(Intercept) -10.48174    4.30409  -2.435   0.0149
age           0.16295    0.07018   2.322   0.0202

(Dispersion parameter for binomial family taken to be 1)

    Null deviance: 51.796  on 39  degrees of freedom
Residual deviance: 45.301  on 38  degrees of freedom
AIC: 49.301

Number of Fisher Scoring iterations: 3

###################
 
There are still a few questions left, of course.



Bill Venables
http://www.cmis.csiro.au/bill.venables/ 


-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of phen_ys
Sent: Tuesday, 19 May 2009 5:17 PM
To: r-help at r-project.org
Subject: Re: [R] Finding data association in R
Johannes H?sing wrote:
I try to fit this into the model use lm function, but it doesn't make much
sense. The question i'm trying to answer is whether death rate is associated
with age. E.g the death rate is higher when the age is older.