Assignment 10

Due Date

Friday, March 30, 2012

Data Source

The data set for this assignment is flowers.txt, a space-delimited text file.

Overview

The goal is to determine if male flowers of the dioecious plant Clematis ligusticifolia are more attractive to insects than are female flowers. Muenchow (1986) describes her experimental protocol as follows (p. 247).

The data were collected in Matthews-Winter Park, Jefferson County, Colorado. In 1983 the plants bloomed from about 15 July to 15 August. Between 0700 and 1500 on 15 days throughout the blooming period, I recorded waiting times until insects arrived as follows. I chose two target flowers on the same plant, at least 30 cm apart but close enough to allow careful simultaneous observation. The choice of two target flowers rather than one was necessitated by the overall slow arrival rate of insects. When watching a single flower, I was in danger of observing so few visits that any analysis would be compromised by small sample size. The event was defined as the arrival of any flying insect at one of the flowers. The flowers are shallow and capable of being pollinated by a variety of insects, as is typical of dioecious flowers (Bawa 1980, G. Muenchow, personal observation), so I did not restrict my attention to any one insect group. The waiting times were recorded to the nearest minute. I used ≈ 20 plants of each gender and usually collected 6-8 data points in a day. Altogether 96 cases (pairs of target flowers) were observed during a total of 3180 min (53 h). In 10 of these cases I observed no insects; these data were censored after 75 or more minutes of observation.

The data are reported in Muenchow (1986), a paper whose purpose was to introduce the methods of survival analysis to ecologists.

Variables

  1. time: the time to an event, insect arrival or censoring
  2. censor: 1 = event, 0 = censor
  3. sex: sex of plant bearing the flowers

Questions

  1. Obtain the Kaplan-Meier estimates of the survivor curves for the two sexes and display them on the same graph along with 95% confidence intervals.
  2. For flowers of each sex, estimate the median time it takes for an insect to visit along with a 95% confidence interval for the median.
  3. Test whether the event time distribution of insect visits is different for male and female flowers.
  4. Estimate the hazard ratio of males versus females and interpret this quantity in terms of the language of this problem.
  5. Assess whether the proportional hazards assumption is appropriate for these data.
  6. Fit a Weibull model to the event time data in which you allow for an effect due to the sex of the flower. Use the Weibull model to estimate the median time to an event as well as the standard error of the median separately for each sex.

Hints

Question 2

A 95% confidence interval for the median can be obtained by first plotting the Kaplan-Meier estimate of the survivor function along with 95% confidence bands (use the conf.int=T argument of plot to display the intervals for each sex) and then adding a horizontal line at S(t) = 0.50. Where this line intersects the KM estimate of the survivor function is the median. The desired confidence interval corresponds to where this horizontal line intersects the lower and upper confidence bands of S(t). To make this determination easier you can use the grid function to add gridlines to the graph at the integer values of time.

It turns out that there is an even easier way to answer this question. One of the standard R functions when applied to an object of class survfit returns estimates of the median and its 95% confidence interval automatically. To see what functions support the survfit class use the methods function as follows: methods(class=survfit). One of the functions shown in the display is the one you want.

Question 6

I'm asking you to predict the value of a specific survivorship quantile for male and female flowers. Examine the help screen of the appropriate method of one of R's basic functions to determine what arguments you need to specify to obtain these values.

Cited references

Course Home Page


Jack Weiss
Phone: (919) 962-5930
E-Mail: jack_weiss@unc.edu
Address: Curriculum in Ecology and the Environment, Box 3275, University of North Carolina, Chapel Hill, 27599
Copyright © 2012
Last Revised--March 26, 2012
URL: https://sakai.unc.edu/access/content/group/2842013b-58f5-4453-aa8d-3e01bacbfc3d/public/Ecol562_Spring2012/docs/assignments/assign10.htm