Learn R Programming

RMark (version 2.1.1)

Donovan.7: Exercise 7 example data

Description

An example occupancy data set used as exercise 7 in the occupancy website developed by Donovan and Hines.

Arguments

Details

This is a data set from exercise 7 of Donovan and Hines occupancy web site (http://www.uvm.edu/envnr/vtcfwru/spreadsheets/occupancy/occupancy.htm).

Examples

Run this code
# Donovan.7 can be created with
# Donovan.7=convert.inp("Donovan.7.inp")

do.exercise.7=function()
{
  data(Donovan.7)
# Estimates from following agree with estimates on website but the
# log-likelihood values do not agree.  Maybe a difference in whether the
# constant binomial coefficients are included.
  Donovan.7.poisson=mark(Donovan.7,model="OccupRNPoisson",invisible=FALSE)
# THe following model was not in exercise 7.
  Donovan.7.negbin=mark(Donovan.7,model="OccupRNNegBin",invisible=FALSE)
  return(collect.models())
}
exercise.7=do.exercise.7()
# Remove # to see output
# print(exercise.7)

Run the code above in your browser using DataLab