Skip to content

Commit 4b09f24

Browse files
Merge pull request #23 from USEPA/develop
CRAN v0.8.0
2 parents b3e1dab + bda05ee commit 4b09f24

File tree

168 files changed

+10468
-7372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+10468
-7372
lines changed

DESCRIPTION

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: spmodel
22
Title: Spatial Statistical Modeling and Prediction
3-
Version: 0.7.0
3+
Version: 0.8.0
44
Authors@R: c(
55
person(given = "Michael",
66
family = "Dumelle",
@@ -17,6 +17,11 @@ Authors@R: c(
1717
role = "ctb",
1818
email = "[email protected]",
1919
comment = c(ORCID = "0000-0001-9583-0426")),
20+
person(given = "Michael",
21+
family = "Mahon",
22+
role = "ctb",
23+
email = "[email protected]",
24+
comment = c(ORCID = "0000-0002-9436-2998")),
2025
person(given = "Jay M.",
2126
family = "Ver Hoef",
2227
role = "aut",
@@ -46,7 +51,9 @@ Suggests:
4651
ggplot2,
4752
ranger,
4853
statmod,
49-
pROC
54+
pROC,
55+
emmeans (>= 1.4),
56+
estimability
5057
VignetteBuilder: knitr
5158
Config/testthat/edition: 3
5259
URL: https://usepa.github.io/spmodel/

NAMESPACE

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
# Generated by roxygen2: do not edit by hand
22

3-
S3method(AIC,spautor)
4-
S3method(AIC,spgautor)
5-
S3method(AIC,spglm)
6-
S3method(AIC,splm)
73
S3method(AICc,spautor)
84
S3method(AICc,spgautor)
95
S3method(AICc,spglm)
106
S3method(AICc,splm)
117
S3method(AUROC,spgautor)
128
S3method(AUROC,spglm)
13-
S3method(BIC,spautor)
14-
S3method(BIC,spgautor)
15-
S3method(BIC,spglm)
16-
S3method(BIC,splm)
179
S3method(anova,spautor)
1810
S3method(anova,spgautor)
1911
S3method(anova,spglm)
@@ -191,6 +183,7 @@ S3method(model.matrix,spautor)
191183
S3method(model.matrix,spgautor)
192184
S3method(model.matrix,spglm)
193185
S3method(model.matrix,splm)
186+
S3method(plot,esv)
194187
S3method(plot,spautor)
195188
S3method(plot,spgautor)
196189
S3method(plot,spglm)
@@ -397,6 +390,7 @@ importFrom(sf,st_centroid)
397390
importFrom(sf,st_coordinates)
398391
importFrom(sf,st_crs)
399392
importFrom(sf,st_drop_geometry)
393+
importFrom(sf,st_geometry_type)
400394
importFrom(sf,st_intersects)
401395
importFrom(sf,st_is_longlat)
402396
importFrom(stats,.getXlevels)

NEWS.md

+35
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,38 @@
1+
# spmodel 0.8.0
2+
3+
## Major Updates
4+
5+
* Added support for the `emmeans` **R** package for estimating marginal means of `splm()`, `spautor()`, `spglm()`, and `spgautor()` models.
6+
* Added a vignette to the [`spmodel` website](https://usepa.github.io/spmodel/) titled "Using emmeans to Estimate Marginal Means of spmodel Objects".
7+
* Added support for distance-based neighborhood definitions of `spautor()` and `spgautor()` models via the `cutoff` argument, required when `data` are an `sf` object with `POINT` geometry and `W` is not specified.
8+
* Added the `texas` data set, which contains voter turnout data from eligible voters in Texas, USA, during the 1980 Presidential election.
9+
* Added the `lake` and `lake_preds` data sets, which contain data from the United States Environmental Protection Agency's National Lakes Assessment and LakeCat.
10+
11+
12+
## Minor Updates
13+
14+
* Changed the `type` argument in `augment()` for `spglm()` and `spgautor()` models to `type.predict` to match `broom::augment.glm()`.
15+
* `augment()` for `spglm()` and `spgautor()` models now returns fitted values on the link scale by default to match `broom::augment.glm()`.
16+
* Added a `type.residuals` argument for `spglm()` and `spgautor()` models to match `broom::augment.glm()`.
17+
* Updated `logLik()` to match `lm()` and `glm()` behavior. `logLik()` now returns a vector with class `logLik` and attributes `nobs` and `df`.
18+
* Added support for using `AIC()` and `BIC()` from `stats` and removed `spmodel`-specific `AIC()` and `BIC()` methods.
19+
* Added support for `"terms"` prediction for `splm()`, `spautor()`, `spglm()`, and `spgautor()` models.
20+
* Added `scale` and `df` arguments to `predict()` for `splm()` and `spautor()` models.
21+
* Add `dispersion` argument to `predict()` for `spglm()` and `spgautor()` models.
22+
* Enhanced numeric stability of deviance and pseudo R-squared for `spglm()` or `spgautor()` models when `family = "beta"`.
23+
* Added the `cov_type` argument to `covmatrix()` to return observed by observed, prediction by observed, observed by prediction, and prediction by prediction covariance matrices.
24+
* Added a `warning` argument to `glances()` that determines whether relevant warnings should be displayed or not.
25+
* Added a warning message to `glances()` about interpreting likelihood-based statistics (e.g., AIC, AICc, BIC) when a one model has `estmethod = "ml"` and another model has `estmethod = "reml"`.
26+
* Added a warning message to `glances()` about interpreting likelihood-based statistics (e.g., AIC, AICc, BIC) when two models with `estmethod = "reml"` have distinct `formula` arguments.
27+
* Added a warning message to `glances()` about interpreting likelihood-based statistics (e.g., AIC, AICc, BIC) when two models have different sample sizes.
28+
* Added a warning message to `glances()` about interpreting likelihood-based statistics (e.g., AIC, AICc, BIC) when two models have different family supports (which can happen with `spglm()` and `spgautor()` models).
29+
* All data sets now have `tbl_df` and `tbl` classes (i.e., are tibbles).
30+
* Added a `cloud` argument to `esv()` to return a cloud semivariogram.
31+
* `esv()` output now has `tbl_df` and `tbl` classes (i.e., are tibbles) and an `esv` class.
32+
* Added a `plot()` method for `esv` objects.
33+
* Minor vignette updates.
34+
* Minor documentation updates.
35+
136
# spmodel 0.7.0
237

338
## Minor Updates

R/AIC.R

-227
This file was deleted.

0 commit comments

Comments
 (0)