{
  "_id": "6a0f716bacfb0bcc41c5f794",
  "Package": "dsm",
  "Maintainer": "Laura Marshall <lhm@st-andrews.ac.uk>",
  "License": "GPL (>= 2)",
  "Title": "Density Surface Modelling of Distance Sampling Data",
  "LazyLoad": "yes",
  "Authors@R": "c(person(given=c(\"Laura\"),\nfamily=\"Marshall\",\nemail = \"lhm@st-andrews.ac.uk\" ,\nrole = \"cre\"),\nperson(given=c(\"David\", \"L.\"),\nfamily=\"Miller\",\nrole=c(\"aut\")),\nperson(given=\"Eric\",\nfamily=\"Rexstad\",\nrole=\"ctb\"),\nperson(given=\"Louise\",\nfamily=\"Burt\",\nrole=\"ctb\"),\nperson(given=c(\"Mark\", \"V.\"),\nfamily=\"Bravington\",\nrole=\"ctb\"),\nperson(given=\"Sharon\",\nfamily=\"Hedley\",\nrole=\"ctb\"),\nperson(given=\"Megan\",\nfamily=\"Ferguson\",\nrole=\"ctb\"),\nperson(given=\"Natalie\",\nfamily=\"Kelly\",\nrole=\"ctb\"))",
  "Description": "Density surface modelling of line transect data. A\nGeneralized Additive Model-based approach is used to calculate\nspatially-explicit estimates of animal abundance from distance\nsampling (also presence/absence and strip transect) data.\nSeveral utility functions are provided for model checking,\nplotting and variance estimation.",
  "Version": "2.3.4",
  "Language": "en-GB",
  "Encoding": "UTF-8",
  "URL": "https://github.com/DistanceDevelopment/dsm",
  "BugReports": "https://github.com/DistanceDevelopment/dsm/issues",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Config/pak/sysreqs": "cmake",
  "Repository": "https://distancedevelopment.r-universe.dev",
  "Date/Publication": "2025-09-16 14:02:41 UTC",
  "RemoteUrl": "https://github.com/distanceDevelopment/dsm",
  "RemoteRef": "HEAD",
  "RemoteSha": "bf3f927ccde30c250dbcb985b99dc6b4f9e5b6e6",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-21 07:15:31 UTC",
    "User": "root"
  },
  "Author": "Laura Marshall [cre],\nDavid L. Miller [aut],\nEric Rexstad [ctb],\nLouise Burt [ctb],\nMark V. Bravington [ctb],\nSharon Hedley [ctb],\nMegan Ferguson [ctb],\nNatalie Kelly [ctb]",
  "MD5sum": "b0e5b114116c2e8fd3088a6cec4a9841",
  "_user": "distancedevelopment",
  "_type": "src",
  "_file": "dsm_2.3.4.tar.gz",
  "_fileid": "a59204c93a20e3294aeab47edade656f2c7f71dd9a283006f75211c00e01371f",
  "_filesize": 317868,
  "_sha256": "a59204c93a20e3294aeab47edade656f2c7f71dd9a283006f75211c00e01371f",
  "_created": "2026-05-21T07:15:31.000Z",
  "_published": "2026-05-21T20:56:11.841Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77267037085,
      "time": 161,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7129526956"
    },
    {
      "job": 77267037015,
      "time": 160,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7129526839"
    },
    {
      "job": 77267037301,
      "time": 95,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7129507856"
    },
    {
      "job": 77267037455,
      "time": 113,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7129512673"
    },
    {
      "job": 77267036932,
      "time": 216,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7129478841"
    },
    {
      "job": 77267036719,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7147015574"
    },
    {
      "job": 77267037046,
      "time": 213,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7129541167"
    },
    {
      "job": 77267037629,
      "time": 131,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7129518220"
    },
    {
      "job": 77267037690,
      "time": 136,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7129519562"
    }
  ],
  "_buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/26211236091",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/distanceDevelopment/dsm",
  "_commit": {
    "id": "bf3f927ccde30c250dbcb985b99dc6b4f9e5b6e6",
    "author": "erex <ericincrail@gmail.com>",
    "committer": "erex <ericincrail@gmail.com>",
    "message": "complete step2: GA and cookie consent now complete courtesy of cookieconsent.com\n",
    "time": 1758031361
  },
  "_maintainer": {
    "name": "Laura Marshall",
    "email": "lhm@st-andrews.ac.uk",
    "login": "lhmarshall",
    "description": "",
    "uuid": 1295691
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "mgcv",
      "version": ">= 1.8-23",
      "role": "Depends"
    },
    {
      "package": "mrds",
      "version": ">= 2.1.16",
      "role": "Depends"
    },
    {
      "package": "numDeriv",
      "role": "Depends"
    },
    {
      "package": "nlme",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "statmod",
      "role": "Imports"
    },
    {
      "package": "Distance",
      "role": "Suggests"
    },
    {
      "package": "sp",
      "role": "Suggests"
    },
    {
      "package": "tweedie",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "distancedevelopment",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-32",
      "n": 4
    },
    {
      "week": "2025-38",
      "n": 3
    }
  ],
  "_tags": [],
  "_stars": 8,
  "_contributors": [
    {
      "user": "dill",
      "count": 159,
      "uuid": 1953
    },
    {
      "user": "lhmarshall",
      "count": 34,
      "uuid": 1295691
    },
    {
      "user": "erex",
      "count": 11,
      "uuid": 330744
    },
    {
      "user": "lenthomas",
      "count": 1,
      "uuid": 129519
    }
  ],
  "_userbio": {
    "uuid": 4293301,
    "type": "organization",
    "name": "Distance development",
    "description": "Distance sampling software development team"
  },
  "_downloads": {
    "count": 356,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/dsm"
  },
  "_mentions": 7,
  "_devurl": "https://github.com/distancedevelopment/dsm",
  "_searchresults": 166,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/dsm.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/distancedevelopment/dsm",
  "_realowner": "distancedevelopment",
  "_cranurl": true,
  "_releases": [
    {
      "version": "2.0",
      "date": "2012-11-24"
    },
    {
      "version": "2.0.1",
      "date": "2013-02-21"
    },
    {
      "version": "2.1.3",
      "date": "2013-08-20"
    },
    {
      "version": "2.2.3",
      "date": "2014-04-23"
    },
    {
      "version": "2.2.4",
      "date": "2014-06-17"
    },
    {
      "version": "2.2.5",
      "date": "2014-09-15"
    },
    {
      "version": "2.2.9",
      "date": "2015-07-29"
    },
    {
      "version": "2.2.12",
      "date": "2016-08-11"
    },
    {
      "version": "2.2.13",
      "date": "2016-10-07"
    },
    {
      "version": "2.2.14",
      "date": "2017-01-26"
    },
    {
      "version": "2.2.15",
      "date": "2017-07-03"
    },
    {
      "version": "2.2.16",
      "date": "2018-06-27"
    },
    {
      "version": "2.2.17",
      "date": "2019-01-19"
    },
    {
      "version": "2.3.0",
      "date": "2020-04-22"
    },
    {
      "version": "2.3.1",
      "date": "2021-03-27"
    },
    {
      "version": "2.3.2",
      "date": "2022-03-17"
    },
    {
      "version": "2.3.3",
      "date": "2022-08-20"
    },
    {
      "version": "2.3.4",
      "date": "2025-09-02"
    }
  ],
  "_exports": [
    "dsm",
    "dsm_cor",
    "dsm_var_gam",
    "dsm_var_movblk",
    "dsm_var_prop",
    "dsm_varprop",
    "dsm.cor",
    "dsm.var.gam",
    "dsm.var.movblk",
    "dsm.var.prop",
    "dummy_ddf",
    "generate.ds.uncertainty",
    "generate.mb.sample",
    "latlong2km",
    "make.soapgrid",
    "obs_exp",
    "plot_pred_by_term",
    "rqgam_check",
    "rqgam.check",
    "trim.var",
    "vis_concurvity",
    "vis.concurvity"
  ],
  "_datasets": [
    {
      "name": "distdata",
      "title": "Pan-tropical spotted dolphins in the Gulf of Mexico",
      "object": "mexdolphins",
      "file": "mexdolphins.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "object",
        "size",
        "distance",
        "Effort",
        "detected",
        "beaufort",
        "latitude",
        "longitude",
        "x",
        "y"
      ],
      "rows": 47,
      "table": true,
      "tojson": true
    },
    {
      "name": "obsdata",
      "title": "Pan-tropical spotted dolphins in the Gulf of Mexico",
      "object": "mexdolphins",
      "file": "mexdolphins.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "object",
        "Sample.Label",
        "size",
        "distance",
        "Effort"
      ],
      "rows": 47,
      "table": true,
      "tojson": true
    },
    {
      "name": "preddata",
      "title": "Pan-tropical spotted dolphins in the Gulf of Mexico",
      "object": "mexdolphins",
      "file": "mexdolphins.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "latitude",
        "longitude",
        "x",
        "y",
        "depth",
        "area"
      ],
      "rows": 1374,
      "table": true,
      "tojson": true
    },
    {
      "name": "segdata",
      "title": "Pan-tropical spotted dolphins in the Gulf of Mexico",
      "object": "mexdolphins",
      "file": "mexdolphins.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "longitude",
        "latitude",
        "x",
        "y",
        "Effort",
        "Transect.Label",
        "Sample.Label",
        "depth"
      ],
      "rows": 387,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "dsm-package",
      "title": "Density surface modelling",
      "topics": [
        "dsm-package"
      ]
    },
    {
      "page": "block.info.per.su",
      "title": "Find the block information",
      "topics": [
        "block.info.per.su"
      ]
    },
    {
      "page": "check.cols",
      "title": "Check column names exist",
      "topics": [
        "check.cols"
      ]
    },
    {
      "page": "dsm",
      "title": "Fit a density surface model to segment-specific estimates of abundance or density.",
      "topics": [
        "dsm"
      ]
    },
    {
      "page": "dsm_cor",
      "title": "Check for autocorrelation in residuals",
      "topics": [
        "dsm_cor"
      ]
    },
    {
      "page": "dsm_var_gam",
      "title": "Prediction variance estimation assuming independence",
      "topics": [
        "dsm_var_gam"
      ]
    },
    {
      "page": "dsm_var_movblk",
      "title": "Variance estimation via parametric moving block bootstrap",
      "topics": [
        "dsm_var_movblk"
      ]
    },
    {
      "page": "dsm_var_prop",
      "title": "Prediction variance propagation for DSMs",
      "topics": [
        "dsm_var_prop"
      ]
    },
    {
      "page": "dsm_varprop",
      "title": "Variance propagation for density surface models",
      "topics": [
        "dsm_varprop"
      ]
    },
    {
      "page": "dsm-data",
      "title": "Data format for DSM",
      "topics": [
        "dsm-data"
      ]
    },
    {
      "page": "dsm.cor",
      "title": "Check for autocorrelation in residuals",
      "topics": [
        "dsm.cor"
      ]
    },
    {
      "page": "dsm.var.gam",
      "title": "Prediction variance estimation assuming independence",
      "topics": [
        "dsm.var.gam"
      ]
    },
    {
      "page": "dsm.var.movblk",
      "title": "Variance estimation via parametric moving block bootstrap",
      "topics": [
        "dsm.var.movblk"
      ]
    },
    {
      "page": "dsm.var.prop",
      "title": "Prediction variance propagation for DSMs",
      "topics": [
        "dsm.var.prop"
      ]
    },
    {
      "page": "dummy_ddf",
      "title": "Detection function objects when detection is certain",
      "topics": [
        "dummy_ddf"
      ]
    },
    {
      "page": "generate.ds.uncertainty",
      "title": "Generate data from a fitted detection function",
      "topics": [
        "generate.ds.uncertainty"
      ]
    },
    {
      "page": "generate.mb.sample",
      "title": "Moving block bootstrap sampler",
      "topics": [
        "generate.mb.sample"
      ]
    },
    {
      "page": "latlong2km",
      "title": "Convert latitude and longitude to Northings and Eastings",
      "topics": [
        "latlong2km"
      ]
    },
    {
      "page": "make.soapgrid",
      "title": "Create a knot grid for the internal part of a soap film smoother.",
      "topics": [
        "make.soapgrid"
      ]
    },
    {
      "page": "mexdolphins",
      "title": "Pan-tropical spotted dolphins in the Gulf of Mexico",
      "topics": [
        "distdata",
        "mexdolphins",
        "obsdata",
        "pred.polys",
        "preddata",
        "segdata",
        "survey.area"
      ]
    },
    {
      "page": "obs_exp",
      "title": "Observed versus expected diagnostics for fitted DSMs",
      "topics": [
        "obs_exp"
      ]
    },
    {
      "page": "plot_pred_by_term",
      "title": "Spatially plot predictions per model term",
      "topics": [
        "plot_pred_by_term"
      ]
    },
    {
      "page": "plot.dsm",
      "title": "Plot a density surface model.",
      "topics": [
        "plot.dsm"
      ]
    },
    {
      "page": "plot.dsm.var",
      "title": "Create plots of abundance uncertainty",
      "topics": [
        "plot.dsm.var"
      ]
    },
    {
      "page": "predict.dsm",
      "title": "Predict from a fitted density surface model",
      "topics": [
        "predict.dsm"
      ]
    },
    {
      "page": "predict.fake_ddf",
      "title": "Prediction for fake detection functions",
      "topics": [
        "predict.fake_ddf"
      ]
    },
    {
      "page": "print.dsm",
      "title": "Print a description of a density surface model object",
      "topics": [
        "print.dsm"
      ]
    },
    {
      "page": "print.dsm_varprop",
      "title": "Print a description of a density surface model variance object",
      "topics": [
        "print.dsm_varprop"
      ]
    },
    {
      "page": "print.dsm.var",
      "title": "Print a description of a density surface model variance object",
      "topics": [
        "print.dsm.var"
      ]
    },
    {
      "page": "print.summary.dsm_varprop",
      "title": "Print summary of density surface model variance object",
      "topics": [
        "print.summary.dsm_varprop"
      ]
    },
    {
      "page": "print.summary.dsm.var",
      "title": "Print summary of density surface model variance object",
      "topics": [
        "print.summary.dsm.var"
      ]
    },
    {
      "page": "rqgam_check",
      "title": "Randomised quantile residuals check plot for GAMs/DSMs",
      "topics": [
        "rqgam_check"
      ]
    },
    {
      "page": "rqgam.check",
      "title": "Randomised quantile residuals check plot for GAMs/DSMs",
      "topics": [
        "rqgam.check"
      ]
    },
    {
      "page": "summary.dsm",
      "title": "Summarize a fitted density surface model",
      "topics": [
        "summary.dsm"
      ]
    },
    {
      "page": "summary.dsm_varprop",
      "title": "Summarize the variance of a density surface model",
      "topics": [
        "summary.dsm_varprop"
      ]
    },
    {
      "page": "summary.dsm.var",
      "title": "Summarize the variance of a density surface model",
      "topics": [
        "summary.dsm.var"
      ]
    },
    {
      "page": "trim.var",
      "title": "Trimmed variance",
      "topics": [
        "trim.var"
      ]
    },
    {
      "page": "vis_concurvity",
      "title": "Visualise concurvity between terms in a GAM",
      "topics": [
        "vis_concurvity"
      ]
    },
    {
      "page": "vis.concurvity",
      "title": "Visualise concurvity between terms in a GAM",
      "topics": [
        "vis.concurvity"
      ]
    }
  ],
  "_readme": "https://github.com/distanceDevelopment/dsm/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "cpp11",
    "digest",
    "farver",
    "future",
    "future.apply",
    "ggplot2",
    "globals",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "listenv",
    "Matrix",
    "mgcv",
    "mrds",
    "nlme",
    "nloptr",
    "numDeriv",
    "optimx",
    "parallelly",
    "plyr",
    "pracma",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "Rdpack",
    "rlang",
    "Rsolnp",
    "S7",
    "scales",
    "statmod",
    "truncnorm",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 6.445417369765918,
  "_indexed": true,
  "_nocasepkg": "dsm",
  "_universes": [
    "distancedevelopment",
    "lhmarshall"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.3.4",
      "date": "2026-05-21T07:17:51.000Z",
      "distro": "noble",
      "commit": "bf3f927ccde30c250dbcb985b99dc6b4f9e5b6e6",
      "fileid": "6b3f8f29a878ef2bdd51f7c87de9f801abe374bf03944fdbc5ec91ead686c921",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/26211236091"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.3.4",
      "date": "2026-05-21T07:17:55.000Z",
      "distro": "noble",
      "commit": "bf3f927ccde30c250dbcb985b99dc6b4f9e5b6e6",
      "fileid": "8a653da833ebd566e96551e7fb9a4736d5dec793af8c6348a90fcd68a5a3140d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/26211236091"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.3.4",
      "date": "2026-05-21T07:17:08.000Z",
      "commit": "bf3f927ccde30c250dbcb985b99dc6b4f9e5b6e6",
      "fileid": "ff2531fa693fda036cb5cbc112e4da1353fcf6e4e34ff28c5efa18557a70aaef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/26211236091"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.3.4",
      "date": "2026-05-21T07:17:16.000Z",
      "commit": "bf3f927ccde30c250dbcb985b99dc6b4f9e5b6e6",
      "fileid": "da0a403d9ab0034e7e78f4866ec076c1e2052a37e7f8dd6915c3646737d0e6fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/26211236091"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.3.4",
      "date": "2026-05-21T20:55:57.000Z",
      "commit": "bf3f927ccde30c250dbcb985b99dc6b4f9e5b6e6",
      "fileid": "3031ded7b2cfcb610ec9cf272165f83bf97cc9dc3dfb10d5c33622493c03d1fa",
      "status": "success",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/26211236091"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.3.4",
      "date": "2026-05-21T07:18:33.000Z",
      "commit": "bf3f927ccde30c250dbcb985b99dc6b4f9e5b6e6",
      "fileid": "d960c90c4f39fdcfb8b9d8e68f5b4037680f47b27accb926de36f535d6ce54b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/26211236091"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.3.4",
      "date": "2026-05-21T07:17:11.000Z",
      "commit": "bf3f927ccde30c250dbcb985b99dc6b4f9e5b6e6",
      "fileid": "c902ecd085079eaa4e4250cbb8a78681804ee034e16725c1957ae0755d7af127",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/26211236091"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.3.4",
      "date": "2026-05-21T07:17:10.000Z",
      "commit": "bf3f927ccde30c250dbcb985b99dc6b4f9e5b6e6",
      "fileid": "54f1e62aa7d4f521b93299b19e631bf8dbae71b6fe44c55acc0ad5c3cd8c93b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/26211236091"
    }
  ]
}