- fixed missing lc = "F" class for fixed (e.g., GPS locations) in dat4jags. This causes models to crash when lc = "F" in data.
- replaced deprecated tibble functions as_data_frame and data_frame with as_tibble and tibble, respectively
- fixes an issue where join on data and tpar by 'lc' may error due to incompatible ordered factor types
- fixed indexing on priors for initial location state. A sufficiently short time step could cause the hierarchical models to crash on compilation.
- fixed the mis-ordering of animal id's in the summary and data output data.frames caused when a hierarchical model was fit to a dataset with >= 10 individuals
- changed diag_ssm plot so that diagnostic panels for psi parameters are split into multiple pages of 5 rows/page when fitting a hierarchical model. Previous version packed all the psi diagnostic plots into a single page
- major bug fix - data indexing when fitting hierarchical models was causing improper fits to multi-individual datasets with > 2 individuals. Indexing now works as intended
- Added simulate function
- Prevented individual animal tracks from being re-ordered by split function so output track order now matches input track order
- added list of initial values to the output list object. Making these available can aid diagnosing lack of convergence and inform choice of span argument value for generating location state initial values
- added
get_summary
function to extract summarydata_frame
fromfit_ssm
output objects. Thedata_frame
can optionally be written to a .csv file
- added
sp
andrworldxtra
back to Imports list in DESCRIPTION. Ensures all required packages are installed, otherwisemap_ssm
will return an error when attempting to loadcountriesHigh
data ifsp
and/orrworldxtra
are not installed
-
removed sp and rworldxtra from Imports
-
added BugReports URL to DESCRIPTION
-
Simplified movement models by removing the mean turn angle parameter. This tends to improve convergence for the behavioural switching models
-
Simplified the regularisation / interpolation in the observation models
-
Simplified data preparation code
-
Diagnostic plots (renamed from
diagSSM
todiag_ssm
) now include the Gelman-Rubin-Brooks shrink factor plots for each parameter -
New mapping function (
map_ssm
) uses coastline data fromrworldxtra
andggplot2
for core plotting functions -
New plot function (
plot_fit
) to inspect fit to location data -
Renamed core function
fitSSM
tofit_ssm
-
Improved selection of random initial values for MCMC sampling
-
Initial values for location states are now based on a loess smooth through the observed locations. Users can control the degree of smoothing via the
span
argument tofit_ssm
-
ported from source 2016-05-27 mdsumner@gmail.com
-
converted to use roxygen2
-
Added a
NEWS.md
file to track changes to the package.
f <- "http://web.science.mq.edu.au/~ijonsen/code/bsam_0.43.1.tar.gz"
download.file(f, basename(f), mode = "wb")
system(sprintf("tar zxvf %s", basename(f)))
Rd2roxygen::Rd2roxygen("bsam")