You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*PointedSDMs* includes a selection of functions used to streamline the construction of ISDMs as well and perform model cross-validation. The core functions of the package are:
|`fitISDM()`| Estimate and preform inference on the integrated model. |
51
+
|`datasetOut()`| Perform dataset-out cross-validation, which calculates the impact individual datasets have on the full model. |
52
52
53
53
The function `intModel()` produces an [R6](https://github.com/r-lib/R6) object, and as a result there are various *slot functions* available to further specify the components of the model. These *slot functions* include:
54
54
55
-
|`intModel()` slot function | Function description|
|`` `.$help()` ``| Show documentation for each of the slot functions.|
58
-
|`` `.$plot()` ``| Used to create a plot of the available data. The output of this function is an object of class [`gg`](https://github.com/tidyverse/ggplot2).|
59
-
|`` `.$addBias()` ``| Add an additional spatial field to a dataset to account for sampling bias in unstructured datasets.|
60
-
|`` `.$updateFormula()` ``| Used to update a formula for a process. The idea is to start specify the full model with `startISDM()`, and then thin components per dataset with this function. |
61
-
|`` `.$updateComponents()` ``| Change or add new components used by [inlabru](https://besjournals.onlinelibrary.wiley.com/doi/abs/10.1111/2041-210X.13168) in the integrated model. |
62
-
|`` `.$priorsFixed()` ``| Change the specification of the prior distribution for the fixed effects in the model.|
63
-
|`` `.$specifySpatial()` ``| Specify the spatial field in the model using penalizing complexity (PC) priors.|
64
-
|`` `.$spatialBlock()` ``| Used to specify how the points are spatially blocked. Spatial cross-validation is subsequently performed using `blockedCV()`.|
65
-
|`` `.$addSamplers()` ``| Function to add an integration domain for the PO datasets.|
66
-
|`` `.$specifyRandom()` ``| Specify the priors for the random effects in the model.|
67
-
|`` `.$changeLink()` ``| Change the link function of a process.|
55
+
|`intModel()` slot function | Function description |
|`` `.$help()` ``| Show documentation for each of the slot functions. |
58
+
|`` `.$plot()` ``| Used to create a plot of the available data. The output of this function is an object of class [`gg`](https://github.com/tidyverse/ggplot2). |
59
+
|`` `.$addBias()` ``| Add an additional spatial field to a dataset to account for sampling bias in unstructured datasets. |
60
+
|`` `.$updateFormula()` ``| Used to update a formula for a process. The idea is to start specify the full model with `startISDM()`, and then thin components per dataset with this function. |
61
+
|`` `.$updateComponents()` ``| Change or add new components used by [inlabru](https://besjournals.onlinelibrary.wiley.com/doi/abs/10.1111/2041-210X.13168) in the integrated model. |
62
+
|`` `.$priorsFixed()` ``| Change the specification of the prior distribution for the fixed effects in the model. |
63
+
|`` `.$specifySpatial()` ``| Specify the spatial field in the model using penalizing complexity (PC) priors. |
64
+
|`` `.$spatialBlock()` ``| Used to specify how the points are spatially blocked. Spatial cross-validation is subsequently performed using `blockedCV()`. |
65
+
|`` `.$addSamplers()` ``| Function to add an integration domain for the PO datasets. |
66
+
|`` `.$specifyRandom()` ``| Specify the priors for the random effects in the model. |
67
+
|`` `.$changeLink()` ``| Change the link function of a process. |
68
68
69
69
## Example
70
70
@@ -130,7 +130,7 @@ To improve stability, we specify priors for the intercepts of the model using ``
130
130
131
131
model$priorsFixed(Effect = 'Intercept',
132
132
mean.linear = 0,
133
-
prec.linear = 0.11)
133
+
prec.linear = 1)
134
134
135
135
```
136
136
@@ -139,7 +139,7 @@ And *PC* priors for the spatial field using `` `.$specifySpatial()` ``:
139
139
```{r specifySpatial}
140
140
141
141
model$specifySpatial(sharedSpatial = TRUE,
142
-
prior.range = c(50, 0.1),
142
+
prior.range = c(0.2, 0.1),
143
143
prior.sigma = c(0.1, 0.1))
144
144
145
145
```
@@ -148,8 +148,8 @@ We can then estimate the parameters in the model using the `fitISDM()` function:
|`` `.$help()` ``| Show documentation for each of the slot functions.|
61
-
|`` `.$plot()` ``| Used to create a plot of the available data. The output of this function is an object of class [`gg`](https://github.com/tidyverse/ggplot2).|
62
-
|`` `.$addBias()` ``| Add an additional spatial field to a dataset to account for sampling bias in unstructured datasets.|
63
-
|`` `.$updateFormula()` ``| Used to update a formula for a process. The idea is to start specify the full model with `startISDM()`, and then thin components per dataset with this function. |
64
-
|`` `.$updateComponents()` ``| Change or add new components used by [inlabru](https://besjournals.onlinelibrary.wiley.com/doi/abs/10.1111/2041-210X.13168) in the integrated model. |
65
-
|`` `.$priorsFixed()` ``| Change the specification of the prior distribution for the fixed effects in the model.|
66
-
|`` `.$specifySpatial()` ``| Specify the spatial field in the model using penalizing complexity (PC) priors.|
67
-
|`` `.$spatialBlock()` ``| Used to specify how the points are spatially blocked. Spatial cross-validation is subsequently performed using `blockedCV()`.|
68
-
|`` `.$addSamplers()` ``| Function to add an integration domain for the PO datasets.|
69
-
|`` `.$specifyRandom()` ``| Specify the priors for the random effects in the model.|
70
-
|`` `.$changeLink()` ``| Change the link function of a process.|
58
+
|`intModel()` slot function | Function description |
59
+
|----|----|
60
+
|`` `.$help()` ``| Show documentation for each of the slot functions. |
61
+
|`` `.$plot()` ``| Used to create a plot of the available data. The output of this function is an object of class [`gg`](https://github.com/tidyverse/ggplot2). |
62
+
|`` `.$addBias()` ``| Add an additional spatial field to a dataset to account for sampling bias in unstructured datasets. |
63
+
|`` `.$updateFormula()` ``| Used to update a formula for a process. The idea is to start specify the full model with `startISDM()`, and then thin components per dataset with this function. |
64
+
|`` `.$updateComponents()` ``| Change or add new components used by [inlabru](https://besjournals.onlinelibrary.wiley.com/doi/abs/10.1111/2041-210X.13168) in the integrated model. |
65
+
|`` `.$priorsFixed()` ``| Change the specification of the prior distribution for the fixed effects in the model. |
66
+
|`` `.$specifySpatial()` ``| Specify the spatial field in the model using penalizing complexity (PC) priors. |
67
+
|`` `.$spatialBlock()` ``| Used to specify how the points are spatially blocked. Spatial cross-validation is subsequently performed using `blockedCV()`. |
68
+
|`` `.$addSamplers()` ``| Function to add an integration domain for the PO datasets. |
69
+
|`` `.$specifyRandom()` ``| Specify the priors for the random effects in the model. |
70
+
|`` `.$changeLink()` ``| Change the link function of a process. |
71
71
72
72
## Example
73
73
@@ -131,15 +131,15 @@ using `` `.$priorsFixed()` ``
131
131
132
132
model$priorsFixed(Effect='Intercept',
133
133
mean.linear=0,
134
-
prec.linear=0.11)
134
+
prec.linear=1)
135
135
```
136
136
137
137
And *PC* priors for the spatial field using `` `.$specifySpatial()` ``:
0 commit comments