global.summary: Create a PDF file that summarize the output of the Distance...

Description Usage Arguments Details Value Author References Examples

Description

The file contains a chi-square test table, a predicted density table, a summary of the the detection function, a summary for the model and a histogram of detection.

Usage

1
2
3
4
5
6
7
8
9
global.summary(model, ...)

## S3 method for class 'distanceFit'
global.summary(model, species, file = "tempo",
  directory = "C:/temp/distance")

## S3 method for class 'distanceList'
global.summary(model, species, file = "tempo",
  directory = "C:/temp/distance")

Arguments

model

The output of a distance model fitted with the mcds.wrap function (of class distanceFit or distanceList).

species

vector containing the name of species in each output.

file

Name for the file.

directory

Where to save the output.

Details

This function creates a visual summary of the output file saved as a PDF. See the help files for mcds.wrap for other examples.

Value

This function will prints all the summary tables and an histogram with the predicted detection function in on a 11 X 8 inches PDF. If Global summary is applied on a list in will produce a serie of PDF.

Author

Christian Roy

References

S.T. Buckland, D.R. Anderson, K.P. Burnham, J.L Laake, D.L. Borchers and L. Thomas. 2001. Introduction to Distance Sampling. Estimating abundance of biological populations. Oxford University Press.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
### Import and filter data
data(alcidae)
alcids<-filterECSAS(alcidae)

### Set arguments and parameters
path<-"c:/temp/distance"
pathMCDS<-"C:/Program Files (x86)/Distance 6"
breaks<-c(0,50,100,200,300)
STR_LABEL<-"STR_LABEL"
STR_AREA<-"STR_AREA"
SMP_LABEL<-"WatchID"
SMP_EFFORT<-"WatchLenKm"
DISTANCE<-"Distance"
SIZE<-"Count"

### Run analysis with the MCDS engine. Here, the WatchID is used as the sample.
x<-mcds.wrap(alcids,path=path,pathMCDS=pathMCDS,breaks=breaks,STR_LABEL=STR_LABEL,STR_AREA=STR_AREA,SMP_LABEL=SMP_LABEL,SMP_EFFORT=SMP_EFFORT,DISTANCE=DISTANCE,SIZE=SIZE,verbose=FALSE)
global.summary(model=x, species="alcids", file="alcidae_global", directory="C:/temp/distance") 
END

RoyChristian/R2MCDS documentation built on Jan. 13, 2020, 8:17 p.m.