PakMediNet - Medical Information Gateway of Pakistan

Discussion Forum For Health Professionals

Post a Message

Lost your password?

Post Icon:

Note: Only Health Care Professionals (Doctors, Nurses, Pharmacists etc) and Members of this forum can add a message or reply to this message. Messages of the Non Health Care Professionals will be deleted without notification.

Topic Review - Newest First (only newest 5 are displayed)

rqayyum

Re: Re: Re: Piosson Regression for Death Data

Function is 'glm'.

its usage is as noted below:

glm(formula, family = gaussian, data, weights, subset, na.action, start = NULL, etastart, mustart, offset, control = glm.control(...), model = TRUE, method = "glm.fit", x = FALSE, y = TRUE, contrasts = NULL, ...)

Here is an example of glm use for poisson regression:

> counts <- c(18,17,15,20,10,20,25,13,12)
> outcome <- gl(3,1,9)
> treatment <- gl(3,3)
> glm1 <- glm(counts ~ outcome + treatment, family=poisson())
> summary (glm1)

I hope this helps.

[Edited by rqayyum on 23-04-2008 at 12:43 PM GMT]

ibrahim_ap

Re: Re: Piosson Regression for Death Data

Please advise me how to use R sotware,as I have that one. Please send me the fuction and command to use

rqayyum

Re: Re: Re: Piosson Regression for Death Data

hum! what happens, I mean, why you are unable to use it. Can you explain please?

ibrahim_ap

Re: Re: Piosson Regression for Death Data

Thanks for reply, but i am unable to use R software. Please guide me if you can.

Thanks

rqayyum

Re: Piosson Regression for Death Data

I would suggest software R which is a free software and can be downloaded from this website http://cran.r-project.org/
For poisson regression you will need to use 'glm' function. You can use help in R to learn how to use 'glm' function, or you can use several resources listed on R website, or can learn from several websites that describe this function.