Learn R Programming

DSsim (version 1.1.4)

run.analysis: S4 generic method to run analyses

Description

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 DDf.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

run.analysis(object, data, ...)

# S4 method for DDF.Analysis,DDF.Data run.analysis(object, data, dht = FALSE, point = FALSE, warnings = list())

# S4 method for Simulation,Survey.Results run.analysis(object, data, dht = FALSE)

# S4 method for Simulation,DDF.Data run.analysis(object, data, dht = FALSE)

Arguments

object

an object of class Simulation or DDF.Analysis

data

an object of class Survey.Results or DDF.Data

...

optional arguments including the following:

dht

logical whether density should be estimated after fitting the model

point

logical indicating whether it is a point transect survey

warnings

a list of warnings and how many times they arose

Value

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