This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cf. Kuchibhotla et al. (2022) | |
# 10.1146/annurev-statistics-100421-044639 | |
library(MASS) | |
library(AICcmodavg) | |
library(parallel) | |
# Set number of CPU cores | |
options(cl.cores = 8) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/OhkuboYusaku/blog/tree/main/causal | |
library(lavaan) | |
library(parallel) | |
N.sim <- 10000 | |
N.sample <- 100 | |
sig.y <- 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "R Notebook" | |
output: html_notebook | |
--- | |
# Intrinsic Gaussian CAR model using NIMBLE | |
```{r setup} | |
library(readr) | |
library(nimble) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "R Notebook" | |
output: html_notebook | |
--- | |
# Cormack-Jolly-Seber (CJS) model | |
```{r setup} | |
library(AHMbook) | |
library(nimble) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "R Notebook" | |
output: html_notebook | |
--- | |
# N-mixture model | |
```{r setup} | |
library(AHMbook) | |
library(nimble) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "R Notebook" | |
output: html_notebook | |
--- | |
# Cormack-Jolly-Seber (CJS) model | |
```{r setup} | |
library(AHMbook) | |
library(nimbleEcology) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "R Notebook" | |
output: html_notebook | |
--- | |
# N-mixture model | |
```{r setup} | |
library(AHMbook) | |
library(nimbleEcology) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "R Notebook" | |
output: html_notebook | |
--- | |
# Dynamic occupancy model | |
```{r setup} | |
library(AHMbook) | |
library(nimbleEcology) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "R Notebook" | |
output: html_notebook | |
--- | |
# Site occupancy model analyzed using nimbleEcology | |
```{r setup} | |
library(AHMbook) | |
library(nimbleEcology) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "R Notebook" | |
output: html_notebook | |
--- | |
```{r setup} | |
library(AHMbook) | |
library(unmarked) | |
library(nimble) | |
library(coda) |