> str(bird.2)
'data.frame': 250 obs. of 110 variables:
$ point_id : Factor w/ 150 levels "ADAM01","ADAM02",..: 1 1 2 2 3 3 4 4 5 5 ...
$ point_id_year : chr "ADAM01_A" "ADAM01_B" "ADAM02_A" "ADAM02_B" ...
$ year.1_1 : chr "A" "B" "A" "B" ...
$ date.1_1 : num 16236 16593 16236 16593 16236 ...
$ time.1_1 : num 0.283 0.295 0.308 0.322 0.338 ...
$ observer.1_1 : Factor w/ 3 levels "ML","SD","TD": 3 3 3 3 3 3 3 3 3 3 ...
$ sky.1_1 : chr "E" "A" "E" "A" ...
$ wind.1_1 : chr "C" "A" "B" "B" ...
$ stream.1_1 : chr "A" "B" "A" "A" ...
$ temp_c.1_1 : num 10 6.5 10 6 9 5.5 7 7.5 14 3.5 ...
$ species_count.1_1: num 0 1 1 0 0 1 0 0 0 0 ...
$ year.1_2 : chr "A" "B" "A" "B" ...
$ date.1_2 : num 16236 16593 16236 16593 16236 ...
$ time.1_2 : num 0.283 0.295 0.308 0.322 0.338 ...
$ observer.1_2 : Factor w/ 3 levels "ML","SD","TD": 3 3 3 3 3 3 3 3 3 3 ...
$ sky.1_2 : chr "E" "A" "E" "A" ...
$ wind.1_2 : chr "C" "A" "B" "B" ...
$ stream.1_2 : chr "A" "B" "A" "A" ...
$ temp_c.1_2 : num 10 6.5 10 6 9 5.5 7 7.5 14 3.5 ...
$ species_count.1_2: num 0 0 0 0 0 0 0 0 0 0 ...
$ year.1_3 : chr "A" "B" "A" "B" ...
$ date.1_3 : num 16236 16593 16236 16593 16236 ...
$ time.1_3 : num 0.283 0.295 0.308 0.322 0.338 ...
$ observer.1_3 : Factor w/ 3 levels "ML","SD","TD": 3 3 3 3 3 3 3 3 3 3 ...
$ sky.1_3 : chr "E" "A" "E" "A" ...
$ wind.1_3 : chr "C" "A" "B" "B" ...
$ stream.1_3 : chr "A" "B" "A" "A" ...
$ temp_c.1_3 : num 10 6.5 10 6 9 5.5 7 7.5 14 3.5 ...
$ species_count.1_3: num 0 0 1 0 0 0 0 0 0 0 ...
$ year.1_4 : chr "A" "B" "A" "B" ...
$ date.1_4 : num 16236 16593 16236 16593 16236 ...
$ time.1_4 : num 0.283 0.295 0.308 0.322 0.338 ...
$ observer.1_4 : Factor w/ 3 levels "ML","SD","TD": 3 3 3 3 3 3 3 3 3 3 ...
$ sky.1_4 : chr "E" "A" "E" "A" ...
$ wind.1_4 : chr "C" "A" "B" "B" ...
$ stream.1_4 : chr "A" "B" "A" "A" ...
$ temp_c.1_4 : num 10 6.5 10 6 9 5.5 7 7.5 14 3.5 ...
$ species_count.1_4: num 0 0 0 0 0 0 0 0 0 0 ...
$ year.2_1 : chr "A" "B" "A" "B" ...
$ date.2_1 : num 16249 16604 16249 16604 16249 ...
$ time.2_1 : num 0.265 0.275 0.238 0.249 0.214 ...
$ observer.2_1 : Factor w/ 3 levels "ML","SD","TD": 3 2 3 2 3 2 3 2 3 2 ...
$ sky.2_1 : chr "A" "B" "A" "C" ...
$ wind.2_1 : chr "B" "A" "B" "B" ...
$ stream.2_1 : chr "A" "A" "A" "B" ...
$ temp_c.2_1 : num 13 10.5 12 10 11 9 9 8 17 13.5 ...
$ species_count.2_1: num 0 0 1 0 1 0 0 0 0 0 ...
$ year.2_2 : chr "A" "B" "A" "B" ...
$ date.2_2 : num 16249 16604 16249 16604 16249 ...
$ time.2_2 : num 0.265 0.275 0.238 0.249 0.214 ...
$ observer.2_2 : Factor w/ 3 levels "ML","SD","TD": 3 2 3 2 3 2 3 2 3 2 ...
$ sky.2_2 : chr "A" "B" "A" "C" ...
$ wind.2_2 : chr "B" "A" "B" "B" ...
$ stream.2_2 : chr "A" "A" "A" "B" ...
$ temp_c.2_2 : num 13 10.5 12 10 11 9 9 8 17 13.5 ...
$ species_count.2_2: num 0 0 0 0 0 0 0 0 0 0 ...
$ year.2_3 : chr "A" "B" "A" "B" ...
$ date.2_3 : num 16249 16604 16249 16604 16249 ...
$ time.2_3 : num 0.265 0.275 0.238 0.249 0.214 ...
$ observer.2_3 : Factor w/ 3 levels "ML","SD","TD": 3 2 3 2 3 2 3 2 3 2 ...
$ sky.2_3 : chr "A" "B" "A" "C" ...
$ wind.2_3 : chr "B" "A" "B" "B" ...
$ stream.2_3 : chr "A" "A" "A" "B" ...
$ temp_c.2_3 : num 13 10.5 12 10 11 9 9 8 17 13.5 ...
$ species_count.2_3: num 0 0 0 0 0 0 0 0 0 0 ...
$ year.2_4 : chr "A" "B" "A" "B" ...
$ date.2_4 : num 16249 16604 16249 16604 16249 ...
$ time.2_4 : num 0.265 0.275 0.238 0.249 0.214 ...
$ observer.2_4 : Factor w/ 3 levels "ML","SD","TD": 3 2 3 2 3 2 3 2 3 2 ...
$ sky.2_4 : chr "A" "B" "A" "C" ...
$ wind.2_4 : chr "B" "A" "B" "B" ...
$ stream.2_4 : chr "A" "A" "A" "B" ...
$ temp_c.2_4 : num 13 10.5 12 10 11 9 9 8 17 13.5 ...
$ species_count.2_4: num 0 0 0 0 0 0 0 0 0 0 ...
$ year.3_1 : chr "A" "B" "A" "B" ...
$ date.3_1 : num 16262 16613 16262 16613 16262 ...
$ time.3_1 : num 0.284 0.29 0.31 0.319 0.334 ...
$ observer.3_1 : Factor w/ 3 levels "ML","SD","TD": 3 3 3 3 3 3 3 3 3 3 ...
$ sky.3_1 : chr "B" "A" "A" "A" ...
$ wind.3_1 : chr "A" "A" "A" "A" ...
$ stream.3_1 : chr "A" "A" "A" "A" ...
$ temp_c.3_1 : num 9 9.5 7 9.5 7 9.5 10 12 7 8.5 ...
$ species_count.3_1: num 0 1 0 0 0 0 0 0 0 0 ...
$ year.3_2 : chr "A" "B" "A" "B" ...
$ date.3_2 : num 16262 16613 16262 16613 16262 ...
$ time.3_2 : num 0.284 0.29 0.31 0.319 0.334 ...
$ observer.3_2 : Factor w/ 3 levels "ML","SD","TD": 3 3 3 3 3 3 3 3 3 3 ...
$ sky.3_2 : chr "B" "A" "A" "A" ...
$ wind.3_2 : chr "A" "A" "A" "A" ...
$ stream.3_2 : chr "A" "A" "A" "A" ...
$ temp_c.3_2 : num 9 9.5 7 9.5 7 9.5 10 12 7 8.5 ...
$ species_count.3_2: num 0 0 1 0 0 0 0 0 0 0 ...
$ year.3_3 : chr "A" "B" "A" "B" ...
$ date.3_3 : num 16262 16613 16262 16613 16262 ...
$ time.3_3 : num 0.284 0.29 0.31 0.319 0.334 ...
$ observer.3_3 : Factor w/ 3 levels "ML","SD","TD": 3 3 3 3 3 3 3 3 3 3 ...
$ sky.3_3 : chr "B" "A" "A" "A" ...
$ wind.3_3 : chr "A" "A" "A" "A" ...
$ stream.3_3 : chr "A" "A" "A" "A" ...
[list output truncated]
- attr(*, "reshapeWide")=List of 5
..$ v.names: chr "year" "date" "time" "observer" ...
..$ timevar: chr "rep_interval"
..$ idvar : chr "point_id_year" "point_id"
..$ times : chr "1_1" "1_2" "1_3" "1_4" ...
..$ varying: chr [1:9, 1:12] "year.1_1" "date.1_1" "time.1_1" "observer.1_1" ...
names(bird.2)
zUMF<-with(bird.2,{
unmarkedFrameGMM(
y = cbind(species_count.1_1,species_count.1_2,species_count.1_3,species_count.1_4,species_count.2_1,species_count.2_2,species_count.2_3,species_count.2_4,species_count.3_1,species_count.3_2,species_count.3_3,species_count.3_4), #define response variable (y=site (row) by rep*interval (columns) matrix)
siteCovs = data.frame (point_id_year), #need to provide list of sample sites
yearlySiteCovs = list(year = cbind(year.1_1,year.2_1,year.3_1),#define detection covariates varying with rep (because detection covs are same across intervals, just need to supply cov data from the first interval of each rep (kind of messy, but it works)
date = cbind(date.1_1,date.2_1,date.3_1),
time = cbind(time.1_1,time.2_1,time.3_1),
observer = cbind(observer.1_1,observer.2_1,observer.3_1),
sky = cbind(sky.1_1,sky.2_1,sky.3_1),
wind = cbind(wind.1_1,wind.2_1,wind.3_1),
stream = cbind(stream.1_1,stream.2_1,stream.3_1),
temp_c = cbind(temp_c.1_1,temp_c.2_1,temp_c.3_1)),
numPrimary=3, type="removal")})
summary(zUMF)