rbchan / unmarked

R package for hierarchical models in ecological research
https://rbchan.github.io/unmarked/
36 stars 25 forks source link

Correct help page for unmarkedMultFrame #78

Closed rbchan closed 9 years ago

rbchan commented 10 years ago

In the meantime, I think I found an issue in the help text for "unmarkedMultFrame". I think that the format of the the yearly site covariates and the observation covariates are not described correctly. The text says this (which seems wrong): " ‘yearlySiteCovs’ is a data frame with MT rows which are in site-major, year-minor order. ‘obsCovs’ is a data frame with MTJ rows, which are ordered by site-year-observation"

This is contradicted by the numerical example at the bottom: (M) n <- 50 # number of sites (T) T <- 4 # number of primary periods (J) J <- 3 # number of secondary periods

length(site) [1] 50 dim(years) [1] 50 4 dim(occasions) [1] 50 12 dim(y) [1] 50 12