I am working with distance data for point counts at 350 points with one visit per year for three years. I am mostly interested in estimating effects of site covariates on abundance. I have some models set up and running using gdistsamp with abundance covariates and detection covariates. But what if I want to estimates year effects on abundance--can I do this by modelling a year effect on phi? And how would I do that because if I bring year in as a yearlySiteCovs as three columns, one for each year, there is only one class of year in each column and it doesn't seem the year categories will be treated correctly across all three years? ---Frank Thompson
umf <- unmarkedFrameGDS(y = Y[,1:24], survey="point", unitsIn="m",
dist.breaks=breaks, numPrimary = 4,
siteCovs = data.frame(POTATO, GRASS, LSCALE),
yearlySiteCovs=list(rep = rep, DATE = DATE, HOUR = HOUR))
str(umf)
summary(umf)
Formal class 'unmarkedFrameGDS' [package "unmarked"] with 11 slots
..@ dist.breaks : num [1:7] 0 50 100 150 200 250 300
..@ tlength : num [1:235] 1 1 1 1 1 1 1 1 1 1 ...
..@ survey : chr "point"
..@ unitsIn : chr "m"
..@ numPrimary : num 4
..@ yearlySiteCovs:'data.frame': 940 obs. of 3 variables:
.. ..$ rep : Factor w/ 4 levels "1","2","3","4": 1 2 3 4 1 2 3 4 1 2 ...
.. ..$ DATE: num [1:940] -1.45 -0.552 0.225 1.261 -1.297 ...
.. ..$ HOUR: num [1:940] 1.748 0.159 -0.516 -1.09 2.332 ...
..@ y : num [1:235, 1:24] 0 0 0 0 0 0 1 0 0 0 ...
..@ obsCovs : NULL
..@ siteCovs :'data.frame': 235 obs. of 3 variables:
.. ..$ POTATO: num [1:235(1d)] 0.833 0.714 -0.753 0.935 -0.613 ...
.. .. ..- attr(*, "dimnames")=List of 1
.. .. .. ..$ : chr [1:235] "1" "2" "3" "4" ...
.. ..$ GRASS : num [1:235(1d)] -0.388 -0.388 1.337 -0.388 -0.388 ...
.. .. ..- attr(*, "dimnames")=List of 1
.. .. .. ..$ : chr [1:235] "1" "2" "3" "4" ...
.. ..$ LSCALE: num [1:235(1d)] -0.4509 -0.8946 0.5422 -0.0863 -0.6851 ...
.. .. ..- attr(*, "dimnames")=List of 1
.. .. .. ..$ : chr [1:235] "1" "2" "3" "4" ...
..@ mapInfo : NULL
..@ obsToY : num [1:4, 1:24] 1 0 0 0 1 0 0 0 1 0 ...
# Model with time-dependent phi
fm1 <- gdistsamp(lambdaformula = ~1, phiformula = ~rep-1,
pformula = ~1, keyfun = "haz", output = "density", unitsOut = "ha",
mixture = "P", K = 100, se = TRUE, data = umf)
--
You received this message because you are subscribed to the Google Groups "unmarked" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unmarked+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I am working with distance data for point counts at 350 points with one visit per year for three years. I am mostly interested in estimating effects of site covariates on abundance. I have some models set up and running using gdistsamp with abundance covariates and detection covariates. But what if I want to estimates year effects on abundance--can I do this by modelling a year effect on phi? And how would I do that because if I bring year in as a yearlySiteCovs as three columns, one for each year, there is only one class of year in each column and it doesn't the year categories will be treated correctly across all three years? ---Frank Thompson