Learn R Programming

glmmTMB (version 1.0.2.1)

Owls: Begging by Owl Nestlings

Description

Begging by owl nestlings

Usage

data(Owls)

Arguments

Format

The Owls data set is a data frame with 599 observations on the following variables:

Nest

a factor describing individual nest locations

FoodTreatment

(factor) food treatment: Deprived or Satiated

SexParent

(factor) sex of provisioning parent: Female or Male

ArrivalTime

a numeric vector

SiblingNegotiation

a numeric vector

BroodSize

brood size

NegPerChick

number of negotations per chick

References

Zuur, A. F., E. N. Ieno, N. J. Walker, A. A. Saveliev, and G. M. Smith (2009) Mixed Effects Models and Extensions in Ecology with R; Springer.

Examples

Run this code
# NOT RUN {
data(Owls, package = "glmmTMB")
require("lattice")
bwplot(reorder(Nest,NegPerChick) ~ NegPerChick | FoodTreatment:SexParent,
       data=Owls)
dotplot(reorder(Nest,NegPerChick) ~ NegPerChick| FoodTreatment:SexParent,
        data=Owls)
# }
# NOT RUN {
## Fit negative binomial model with "constant" Zero Inflation :
owls_nb1 <- glmmTMB(SiblingNegotiation ~ FoodTreatment*SexParent +
                                    (1|Nest)+offset(log(BroodSize)),
              family = nbinom1(), zi = ~1, data=Owls)
owls_nb1_bs <- update(owls_nb1,
                      . ~ . - offset(log(BroodSize)) + log(BroodSize))
fixef(owls_nb1_bs)
# }

Run the code above in your browser using DataLab