Displaying 1 result from an estimated 1 matches for "propdead".
2008 Feb 12
1
Finding LD50 from an interaction Generalised Linear model
...1 4 F 11
12 5 F 14
> str(dat)
'data.frame': 12 obs. of 3 variables:
$ ldose : int 0 1 2 3 4 5 0 1 2 3 ...
$ sex : Factor w/ 2 levels "F","M": 2 2 2 2 2 2 1 1 1 1 ...
$ numdead: int 0 3 9 16 18 20 0 2 6 10 ...
> ##convert numdead to propdead
> dat$propdead<-dat$numdead/20
> ##Calculate survival from dead
> dat$numsurv<-20-dat$numdead
> dat$propsurv<-dat$numsurv/20
> ##check table
> dat
ldose sex numdead propdead numsurv propsurv
1 0 M 0 0.00 20 1.00
2 1 M 3 0.15...