Learn R Programming

DSsim (version 1.1.4)

create.survey.results: S4 generic method to simulate a survey

Description

Simulates the process by which individuals / clusters are detected. Currently this is only implemented for line transect surveys. It returns an object of class LT.Survey.Results which contains a population, a set of transects, distance data and if requested region, sample and obs tables.

Usage

create.survey.results(object, dht.tables = FALSE, ...)

# S4 method for Simulation create.survey.results(object, dht.tables = FALSE, ...)

# S4 method for Single.Obs.LT.Survey create.survey.results(object, dht.tables = FALSE, ...)

# S4 method for Single.Obs.PT.Survey create.survey.results(object, dht.tables = FALSE, ...)

Arguments

object

an object of class Simulation

dht.tables

logical value indicating whether or the data tables for Hortvitz-Thompson estimation are required.

...

allows a region object to be passed in

Value

an object of class LT.Survey.Results

Details

This object can be displayed using plot() or the distance data extracted using get.distance.data(). You can then investigate fitting models to this data.

Examples

Run this code
# NOT RUN {
survey.results <- create.survey.results(simulation, dht.table = TRUE)

plot(survey.results)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab