Learn R Programming

dsm - Density surface modelling

What is dsm?

dsm provides a Generalized Additive Model (GAM)-based approach to calculate spatially-explicit estimates of animal abundance from distance sampling (also presence/absence and strip transect) data. Several utility functions are provided for model checking, plotting and variance estimation.

Open Access paper describing the methods:

  • Miller, DL, ML Burt, EA Rexstad and L Thomas (2013). Spatial models for distance sampling data: recent developments and future directions. Methods in Ecology and Evolution. https://doi.org/10.1111/2041-210X.12105

Using dsm

Examples of how to use dsm see

Copy Link

Version

Install

install.packages('dsm')

Monthly Downloads

495

Version

2.3.4

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Laura Marshall

Last Published

September 2nd, 2025

Functions in dsm (2.3.4)

make.soapgrid

Create a knot grid for the internal part of a soap film smoother.
dsm_varprop

Variance propagation for density surface models
generate.mb.sample

Moving block bootstrap sampler
generate.ds.uncertainty

Generate data from a fitted detection function
latlong2km

Convert latitude and longitude to Northings and Eastings
dsm_var_movblk

Variance estimation via parametric moving block bootstrap
dsm_var_prop

Prediction variance propagation for DSMs
dummy_ddf

Detection function objects when detection is certain
dsm_var_gam

Prediction variance estimation assuming independence
mexdolphins

Pan-tropical spotted dolphins in the Gulf of Mexico
print.dsm.var

Print a description of a density surface model variance object
predict.fake_ddf

Prediction for fake detection functions
plot.dsm

Plot a density surface model.
plot.dsm.var

Create plots of abundance uncertainty
plot_pred_by_term

Spatially plot predictions per model term
obs_exp

Observed versus expected diagnostics for fitted DSMs
predict.dsm

Predict from a fitted density surface model
print.dsm

Print a description of a density surface model object
print.summary.dsm.var

Print summary of density surface model variance object
print.dsm_varprop

Print a description of a density surface model variance object
vis.concurvity

Visualise concurvity between terms in a GAM
vis_concurvity

Visualise concurvity between terms in a GAM
trim.var

Trimmed variance
summary.dsm

Summarize a fitted density surface model
summary.dsm_varprop

Summarize the variance of a density surface model
rqgam_check

Randomised quantile residuals check plot for GAMs/DSMs
rqgam.check

Randomised quantile residuals check plot for GAMs/DSMs
print.summary.dsm_varprop

Print summary of density surface model variance object
summary.dsm.var

Summarize the variance of a density surface model
dsm.var.prop

Prediction variance propagation for DSMs
check.cols

Check column names exist
dsm_cor

Check for autocorrelation in residuals
dsm-package

Density surface modelling
dsm.var.movblk

Variance estimation via parametric moving block bootstrap
dsm.var.gam

Prediction variance estimation assuming independence
block.info.per.su

Find the block information
dsm-data

Data format for DSM
dsm.cor

Check for autocorrelation in residuals
dsm

Fit a density surface model to segment-specific estimates of abundance or density.