Changelog
Source:NEWS.md
MRSea 1.6
Notes
SALSA1D:
addition of parameter (
logfile
) to remove dependence on log file sink ifsuppress.printout = TRUE
. Default is set toFALSE
so ifsuppress.printout = TRUE
then no log file is produced unlesslogfile = TRUE
seed added to initialisation of candidate knotsites. The selection of knotsites is only stochastic if you have more than 800 unique values for a variable. With the seed set this allows repeatability of analyses.
SALSA2D:
addition of parameter (
logfile
) to remove dependence on log file sink ifsuppress.printout = TRUE
. Default is set toFALSE
so ifsuppress.printout = TRUE
then no log file is produced unlesslogfile = TRUE
Vignettes:
updates to the images
Other:
plotmeanVar
: the labelling for the Gaussian and Gamma alternative lines has been changed from “Poisson” to “1:1 line”.warning suppression has been added to
do.boostrap.cress.robust
. There is already a try catch for “svd” warnings with an alternative used so not necessary to see the warnings.
MRSea 1.5
Notes
-
SALSA1D:
- update function to allow the inclusion of a variable that is a
Date
class.
- update function to allow the inclusion of a variable that is a
-
SALSA2D:
- the
getRadiiChoices
andgetRadiiChoices.vario
functions have been superseded and merged into one function:getRadiiSequence()
. - functions have been added to help create a factor based knot grid (
selectFctrKnots
) and get an associated infinity-block distance matrix (updates to themakeDists
function). There is also a function to select space-filled starting knots for each factor level (selectFctrStartk
)
- the
-
Vignettes:
- Introduction to MRSea: added section on using
make.gamMRSea
- Interactions: edited to use the new functions for factor based knots.
- Renewables Case Study: vignette re-instated and completely updated for all new functions.
- Introduction to MRSea: added section on using
-
Other:
- The seed used for CV score calculation is appended as an attribute to the output of cv.gamMRSea. Additionally it is also an optional input parameter.
- The seed used for generating the CV folds (
getCVids
) is now appended as an attribute fo the returned vector of folds. - the method for shortening the coefficient names in the summary output has been updated to be more efficient and to work in more situations.
Bug Fixes
SALSA 1D:
-
SALSA 2D:
- The dispersion parameter estimate using
getDisperson
function was incorrectly specified as 1 for the Tweedie distribution. This affected the dropping of “bad” knots in the initialise step resulting in more knots being dropped than should have been. This did not affect knots being subsequently added in the exchange step. The correct calculation is now included in thegetDispersion
function. - When using
initialise = FALSE
and specifying initial knot locations viainitialKnPos
code has been added to snap the initial locations to the nearest candidate knot locations in the knot grid. Previously it was assumed these initial locations were a subset of the candidate set. Now any locations may be used. - When using an odd number of radii and with
chooseradii = FALSE
there may sometimes have been a mismatch from the output of SALSA2D and the output given fromrunSALSA2D
. The default is an even number so mostly this will not have been an issue.
- The dispersion parameter estimate using
-
Other:
- When using the Tweedie distribution, the power parameter is not stored in the model call and so issues arise when using a stored model object where this parameter is no longer available. The parameter is stored within the model but updates have been made to
runSALSA1D
andrunSALSA2D
to ensure that the variance power and variance link are specified as numbers in the model call. - The CV score was unchanged when changing K. This occurred owing to the folds stored within the model object. If
K
specified incv.gamMRSea
is different to that in the model object new folds are now created with a warning message. The folds in the model object remain unchanged. Note that there is now an error message if the number of folds specified exceeds the number of unique panels. - bug in the variance calculation for the gamma distribution in the
plotMeanVar
function. Additionally, the legend mismatched the data. - bug in the
runInfluence
andtimeInfluenceCheck
. It worked fine for models without a 2D smooth but a specification error caused issues for models with one. Fixed and working as it should now.
- When using the Tweedie distribution, the power parameter is not stored in the model call and so issues arise when using a stored model object where this parameter is no longer available. The parameter is stored within the model but updates have been made to
MRSea 1.4
Notes
-
SALSA1D:
- Tweedie distribution and associated information criterion added (
AICtweedie
andBICtweedie
)
- Tweedie distribution and associated information criterion added (
-
SALSA2D:
- Tweedie distribution and associated information criterion added (
AICtweedie
andBICtweedie
)
- Tweedie distribution and associated information criterion added (
-
Vignettes:
- Added a vignette for using the Tweedie distribution in gamMRSea models
- Added a vignette for model diagnostics with general modelling information and MRSea specific functions
- Added a vignette for user specification of the range of radii choices using a variogram
- Added a vignette for a brief introduction to distance sampling using the
mrds
package - Added an introduction to MRSea vignette.
- The case study vignette has been removed for updating and will return soon.
-
Other:
- Mean variance plot function added. This allows the user to assess the suitability of the mean-variance distributional assumption for a number of distributions (Gaussian, Poisson, Quasi-Poisson, Gamma and Tweedie)
- Minor edits to all diagnostic functions (ACF, influence measures, diagnostic plots, cumulative residuals)
MRSea 1.3.3
Notes
-
SALSA1D:
- Update documentation for
runSALSA1D
to includegap
parameter andsplines
parameter. Default settings aregap=0
andsplines="bs"
. - Change specification of cyclic smooths (parameter now specified in
salsa1dlist
) and include additional option for a natural cubic spline.
- Update documentation for
SALSA2D:
-
Other:
- Website created
- Update to the vignettes included within the package and additional web only tutorials created. Still under construction but included now is a basic usage vignette and information on the different splines.
- Add option for user specified label to plots in
runDiagnostics
function
MRSea 1.3.2
Notes
- Gap check added to initialise step to ensure gap parameter is obeyed during initialisation
- Remove storage of
models
object. Hang over from the early days ofMRSea
and taking up workspace memory. - Update to the “Interaction” vignette to make it clearer and the two options of ways to include one.
- Added an option to allow the user to specify their own sequence of radii. Use by adding
r_seq = ...
tosalsa2dlist
Bug Fixes
- CV fold bug fixed for SALSA1D. If correlated blocks specified, these were not maintained in the base model for use later in the algorithm.
- reinstate
require(parallel)
indo.bootstrap.cress.robust
MRSea 1.3.1
MRSea 1.02
Notes
- option added to runACF/plotacf functions to specify the the maximum lag to be plotted (maxlag=NULL). This helps when there may be one long panel and you wish to see the detail in the smaller ones.
- vignette updated
- drop step added to the initialise 2D step. If the initial starting knots do not give a model that has converged then knots are dropped until convergence is achieved. Then the algorithm proceeds as normal (looping over exchange, improve, drop).
MRSea 1.01
Notes
- Addition of an interaction term where the choice of knot locations for each level of the interaction are different. Requires specialist set up of the knot grid and distance matrix. These will be provided in a vignette shortly.
- The user may also now specifiy which knots from the knotgrid they would like to use for initialising. See the help file for runSALSA2D for more.
MRSea 1.0-beta
Notes
- Addition of GEODESIC distance calculation using the
makeDists
function. If you supply a polygon defining an exclusion area, geodesic distances are calculated. - Addition of cross-validation (cv.gamMRSea) as fitness measure
- Addition of option for gaussian (default) or exponential basis function (see runSALSA2D)
- Update to runPartialPlots function to allow inclusion (or not) of intercept uncertainty.
MRSea 0.99-beta
Notes
- Major overhaul of package to include a new model class
gamMRSea
. - Update to summary function to allow robust standard errors to be presented and used for hypothesis testing
- knotgrid for 2D smooth no longer required to be a regular grid
- calculation of basis radii absorbed into
runSALSA2D
function. - predict.gamMRSea function call updated to have same names as predict.glm
- new cv.gamMRSea function. This is the cv.glm function from the boot library edited to allow for use with gamMRSea models.