Hi,
Dennis was kind of enough to remind me that glm() can take a two
column matrix, which is probably what you did with deadalive. He also
gave a rather elegant graphing solution using xyplot:
xyplot(Alive/20 ~ Dose, data = rat.toxic, groups = Sex, type = c('p', 'a'))
Josh
On Mon, Oct 4, 2010
On 2010-10-04 8:21, klsk89 wrote:
Hi i would like to use some graphs or tables to explore the data and make
some sensible guesses of what to expect to see in a glm model to assess if
toxin concentration and sex have a relationship with the kill rate of rats.
But i cant seem to work it out as i
On Mon, Oct 4, 2010 at 7:21 AM, klsk89 wrote:
>
> Hi i would like to use some graphs or tables to explore the data and make
> some sensible guesses of what to expect to see in a glm model to assess if
> toxin concentration and sex have a relationship with the kill rate of rats.
> But i cant seem
Hi i would like to use some graphs or tables to explore the data and make
some sensible guesses of what to expect to see in a glm model to assess if
toxin concentration and sex have a relationship with the kill rate of rats.
But i cant seem to work it out as i have two predictor
variables~help?Th
y
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Namens Tom Willems
Verzonden: maandag 29 oktober 2007 16:51
Aan: r-help@r-project.org
Onderwerp: Re: [R] plot for binomial glm
Dear Jonh,
there is probably an easier way, but i find this to give nice smooth
plots.
Dear Jonh,
there is probably an easier way, but i find this to give nice smooth
plots.
good luck with it.
### R-file
alive <- data$num - data$numdead
numdead <- data$numdead
temp <- data$temp
data.table <- cbind(numdead, alive)
points.graph <- data$alive/data$num
glm.mort<-glm(data.table ~
Radek John wrote:
>
> Hello everybody!
> I am trying to plot glm with family=binomial and can`t work it out. My
> Data
> are:
>
>
mort = data.frame(temp=c(32,32,32,37,37,37,42,42,42,47,47,47,52,52,52),
num = c( 7,8,8,15,15,17,11,28,15,10,12,13,18,19,22),
numdead = c(0,0,0,3,1,3,8,14,12,10,
Radek John said the following on 10/28/2007 5:53 AM:
> Hello everybody!
> I am trying to plot glm with family=binomial and can`t work it out. My Data
> are:
>> mort
>temp num numdead
> 132 7 0
> 232 8 0
> 332 8 0
> 437 15 3
> 537 15 1
Hello everybody!
I am trying to plot glm with family=binomial and can`t work it out. My Data
are:
> mort
temp num numdead
132 7 0
232 8 0
332 8 0
437 15 3
537 15 1
637 17 3
742 11 8
842 28 14
942 15
9 matches
Mail list logo