On the distsamp help page, under "Note", it says "you cannot use
obsCovs." In the distance sampling context, obsCovs are
distance-interval-specific covariates, and I'm not sure if how the
model would perform with that type of covariate. Maybe Andy can weigh
in about this. If the model does work in this case, perhaps I should
make it possible to include obsCovs.
As for cluster size, you are right that you could simply estimate the
density of clusters and then multiply by the mean cluster size.
However, you would probably want to determine if detection probability
is affected by cluster size. The only way I can think of to do that
with this model would require that a maximum of 1 cluster was detected
in each "cell" of your y matrix. Then you could use cluster size as a
distance interval-specific-covariate (assuming this is possible).
I should add functions to return effective strip half-width and
effective area. Until then you can do it manually using the formulas
found in Buckland et al. 2001. The first example on the help page is
for line transects and yields an estimate of 10.9 for the half-normal
shape parameter. The maximum distance is 20, so effective strip
half-width is
integrate(gxhn, 0, 20, sigma=10.9)$value # =12.75m
12.75/20 # = 0.64 is the detection probability
For the point-transect example, the shape parameter estimate is 9.8
and effective area is
grhn <- function(r, sigma) exp(-r^2/(2*sigma^2)) * r
2*pi * integrate(grhn, 0, 25, sigma=9.8)$value # = 580 m^2
580/(pi*25^2) # = 0.30 is the detection probability
Thanks for your questions. Hope this helps.
Richard
__________________________________
Richard Chandler
USGS Patuxent Wildlife Research Center
(e.g. weather, observer, elevation, depth)
| site_id | dist | occasion |
| 1 | 84 | 1 |
| 1 | 14 | 1 |
| 2 | 1 | |
| 3 | 13 | 1 |
| 3 | 56 | 1 |
| 4 | 1 | |
| 1 ... |
12 ... |
2 ... |
| site_id | cov_1 | cov_2 | cov_3.... |
| 1 | 16.5 | 32.9 | 50.6 |
| 2 | 65.9 | 12.3 | 21.8 |
| 3 | 0 | 14.9 | 85.1 |
| 4 | 82.2 | 14 | 3.8 |
| site_id | x_1 | x_2 | x_3 | y_1 | y_2 | y_3 | ..... |
| 1 | 2 | 3 | 2.5 | 56.9 | 54.9 | 55.7 | |
| 2 | 1.5 | 2 | 2 | 45.5 | 46.5 | 49.1 | |
| 3 | 5 | 5 | 6 | 65.8 | 64.3 | 63.2 | |
| 4 | 4 | 4 | 3 | 46.5 | 45.6 | 44.9 |
Hi Richard,
Thanks for the timely reply! I'll proceed with gistsamp and incorporate the covariates as you suggested. It will take a little time to redirect my course but i'll check back in with results so we can finalize this thread.
Thanks again for your great work. Erik
Erik,
If your site_id is sorted as numeric (i.e., 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, …) instead of as a factor (i.e., 1,10, 2, 3, 4, 5, 6, 7, 8, 9, …) in your text files, the ‘formatDistData’ fuction will sort the site_id as factor if it is imported as a factor. Thus, when you use the ‘unmarkedFrameGDS’ function, the covariates for site_id 2 will be associated with site_id 10. Use ‘umf[1:20]’ to verify this for yourself.
I have found that if I import the site_id as numeric, the ‘formatDistData’ fuction will convert the site_id to a factor for me but leave it sorted the same way as it was imported.
Good Luck,
Matt Butler
--
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/groups/opt_out.
Erik,
I believe there is a problem with how you import the yearlySiteCovs as well. Check out:
umf <- unmarkedFrameGDS(y=as.matrix(y.dat1), siteCovs=COVS, numPrimary=3,
yearlySiteCovs=list(X=YRCOVS[,c(“x_1”,”x_2”,”x_3”)],Y= YRCOVS[,c(“y_1”,”y_2”,”y_3”)]),
dist.breaks=db, survey="point", unitsIn="m")
which means you can now specify the following in your model statements:
m2d.NB = gdistsamp(~1,~1,~Y, umf, keyfun = "halfnorm", mixture = "NB", output = "density", unitsOut = "ha", K=200)
Good Luck,
Matt Butler
From: unma...@googlegroups.com [mailto:unma...@googlegroups.com] On Behalf Of erikw...@gmail.com
Sent: Friday, February 08, 2013 2:44 PM
To: unma...@googlegroups.com
Subject: Re: [unmarked] using obsCovs in unmarkedFrame
Hi all,
--