Description Usage Arguments Value See Also Examples
Get fitted density values for each mak point or average density across the mask.
1 2 |
fit |
a fitted |
mask |
a |
type |
the type of fitted value required (use |
If se = FALSE
a numeric vector of fitted values is returned (or a single value if type = "mean"
). If se = TRUE
a list is returned with elements lower
, estimate
and upper
.
plot.secrgam
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | data(Boland.leopards1)
data(Boland.fits1)
op = par(no.readonly = TRUE)
# fitted density values at each mask point
Dhat = fitted(fit1.a3)
par(mfrow = c(1,1))
prep4image(data.frame(x = fit1.a3$mask$x,
y = fit1.a3$mask$y,
z = Dhat), asp = 1)
# fitted mean density across all mask points
Dhat = fitted(fit1.a3, type = "mean") ; Dhat
M = nrow(fit1.a3$mask) ; M # number of mask points
a = attr(fit1.a3$mask, "a") ; a # area of each mask cell
A = M * a ; A # total area of mask
Nhat = Dhat * A ; Nhat # abundance within mask
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.