S4 generic method to run analyses

analyse.dataR Documentation

S4 generic method to run analyses


This method carries out an analysis of distance sampling data. This method is provided to allow the user to perform diagnostics of the analyses used in the simulation. The data argument can be obtained by a call to simulate.survey(object, dht.table = TRUE). Note if the first object supplied is of class DS.Analysis then the second argument must be of class DDf.Data. The data argument may be of either class for an object argument of class Simulation.

Usage, data.obj, ...)

## S4 method for signature 'DS.Analysis,Survey', data.obj, warnings = NULL, ...)

## S4 method for signature 'DS.Analysis,data.frame', data.obj, warnings = NULL, transect = "line", ...)



an object of class DS.Analysis


an object of class Survey or a dataframe


optional arguments (currently not used)


a list of warnings and how many times they arose


character value either "line" or "point" specifying type of transect used in survey


a list containing an S3 ddf object and optionally an S3 dht object relating to the model with the minimum criteria.

either returns a list of the best model, warnings and the number of successfully fitted models (if warnings is supplied as a list) otherwise displays warnings as it goes and returns the best fitting ds model.

dsims documentation built on May 29, 2024, 12:10 p.m.