Showing posts with label Dabob. Show all posts
Showing posts with label Dabob. Show all posts

Monday, September 8, 2014

9 8 2014 Kaplan Meier Survival Graphs

Seattle, WA

Mid 50s to Low 70s Mostly Cloudy

Worked through the examples in Statistical Computing as well as an R instruction video which uses the same sample problem as Statistical Computing as seen below.


Using my own data from Dabob since the experiment has concluded there, I was able to create a Kaplan Meier graph of survival that compares all three populations at Dabob. This information is censured as there were some animals lost during the experiment. This censorship is marked with a cross at the end as I assumed that when the trays were picked up all animals would be accounted for unless they were definitely missing. The graph is below.


As you can see their seems to be a difference in Survival between the populations. I was not sure if this difference was significant. By modifying the example code from Statistical Computing, I was able to show the mean month of death for each population, the variance for each population, as well as test for significant difference by using survreg. This function helps elucidate any differences between samples that may have extreme variance from one another. In this data set, it showed that there is a significant difference in month of death between all populations. You can see the code for everything and the responses below.

>KMdata3=read.csv("KMdata3.csv")
>attach(KMdata3)
>names(KMdata3)
#[1] "Animal"     "Population" "Death"      "Status"  
>tapply(Death[Status==1],Population[Status==1],mean)
#H        N        S 
#6.034682 5.163311 5.744186 
>tapply(Death[Status==1],Population[Status==1],var)
#H        N        S 
#5.471257 3.280445 4.768906 
>model<-survreg(Surv(Death,Status)~Population,dist="exponential")
> summary(model)
#
#Call:
#  survreg(formula = Surv(Death, Status) ~ Population, dist = "exponential")
#Value Std. Error     z        p
#(Intercept)  2.293     0.0538 42.66 0.00e+00
#PopulationN -0.518     0.0716 -7.24 4.65e-13
#PopulationS -0.361     0.0722 -5.00 5.87e-07
#
#Scale fixed at 1 
#
#Exponential distribution
#Loglik(model)= -3641   Loglik(intercept only)= -3668.9
#Chisq= 55.8 on 2 degrees of freedom, p= 7.6e-13 
#Number of Newton-Raphson Iterations: 3 
#n= 1440 
> plot(fit3, col=c(1:3), xlab="Survival Time in Months", ylab="% Surviving")
> legend("bottomleft", title="Population", c('Dabob','Northern','Southern'), fill=c(1:3))

Wednesday, May 7, 2014

Dabob Final Sampling 4-18-14

4-18-2014

Dabob WA
Tarboo Creek
Start Time: 11:30 AM
Finish Time: 2:00 PM
Temp: Low to Mid 60's

Participants: Sammi Brombacher and Jake Heare

We reached the site at roughly 10 AM on Friday morning. There was a slight breeze, misty rain, and overall warm temperatures. We walked out to the site at 11:30 when the tide was low enough to reach the trays. We collected all the trays and placed them on a plastic sled and then dragged them back to the truck. This took approximately 2 hours and some swear words. The trays were then driven back to Seattle and cold stored at 12C. Trays stayed here for 14 hours before being processed the following day by Jake Heare.

Logged Temps for Dabob from Jan 30th to April 17th 2014. Temps logged every 15 minutes. 


Dabob
3H1-4
3H5-8
3H9-12
3H13-16
Total
Live
2
16
32
19
69
Dead
1
1
1
0
3
3N1-4
3N5-8
3N9-12
3N13-16
Total
Live
0
16
0
17
33
Dead
0
7
2
11
20
3S1-4
3S5-8
3S9-12
3S13-16
Total
Live
14
19
11
15
59
Dead
12
6
8
6
32


For more info see the Oly Wiki