Skip to content

Commit

Permalink
Update vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkellner committed Feb 7, 2025
1 parent 6ba2df4 commit b022131
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion vignettes/occuComm.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ You can also check `?MHB2014` for more information.


``` r
set.seed(123)
library(AHMbook)
data(MHB2014)
names(MHB2014)
Expand Down Expand Up @@ -426,7 +427,7 @@ head(rich)
```

```
## [1] 33.41 34.74 52.46 42.03 45.56 43.37
## [1] 33.49 34.93 52.52 42.07 45.55 43.46
```

To get the uncertainty of this estimate, we can return a complete posterior and calculate CIs:
Expand Down
1 change: 1 addition & 0 deletions vignettes/occuComm.Rmd.orig
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ For more detailed analyses of this dataset, see [Applied Hiearchical Modeling in
You can also check `?MHB2014` for more information.

```{r}
set.seed(123)
library(AHMbook)
data(MHB2014)
names(MHB2014)
Expand Down
14 changes: 8 additions & 6 deletions vignettes/powerAnalysis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,18 @@ umf <- unmarkedFrameOccu(y=crossbill[,11:13],
## Call:
## occu(formula = ~1 ~ elev, data = umf)
##
## Occupancy:
## Occupancy (logit-scale):
## Estimate SE z P(>|z|)
## (Intercept) -1.223 0.168 -7.27 3.61e-13
## elev 0.594 0.166 3.59 3.35e-04
##
## Detection:
## Detection (logit-scale):
## Estimate SE z P(>|z|)
## 0.326 0.186 1.75 0.0798
##
## AIC: 480.8533
## AIC: 480.8533
## Number of sites: 260
## ID of sites removed due to NA: 7 14 34 36 43 187 202
```

## Wald tests
Expand Down Expand Up @@ -287,7 +289,7 @@ pa400
```

```
## Model: test
## Model: occu
## Sites: 400
## Primary Periods: 1
## Occasions: 8
Expand Down Expand Up @@ -331,7 +333,7 @@ pa50
```

```
## Model: test
## Model: occu
## Sites: 50
## Primary Periods: 1
## Occasions: 8
Expand Down Expand Up @@ -384,7 +386,7 @@ pl
```

```
## Model: test
## Model: occu
## Number of sites (M): 50, 100, 200, 300, 400
## Number of primary periods (T): 1, 1, 1, 1, 1
## Number of occasions (J): 8, 8, 8, 8, 8
Expand Down

0 comments on commit b022131

Please sign in to comment.