run_analysis: Run a converted distance sampling analysis

Description Usage Arguments Details Value Author(s) Examples

View source: R/run_analysis.R

Description

Take a single converted analysis and run the model contained therein.

Usage

1
run_analysis(analysis, debug = FALSE)

Arguments

analysis

a converted analysis

debug

display the call and name of the model before it is run, print AIC selection details

Details

A previous call to convert_project will return a list of projects. Only one analysis at a time can be run with run_analysis. If you wish to run all the analyses in the project, see the code below using lapply.

If an analysis needs to select the number of adjustment terms (for key plus adjustment detection functions) by AIC, then that selection is done at this stage.

Value

fitted ddf object

Author(s)

David L Miller

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
library(readdst)

# load and convert the golftees project
project <- system.file("Golftees-example", package="readdst")
project <- paste0(project, "/Golftees")
converted <- convert_project(project)

# run the first analysis
analysis_1 <- run_analysis(converted[[1]], debug=TRUE)

# look at the resulting model output
summary(analysis_1)

# run all the analyses in a project
all_analyses_run <- lapply(converted, run_analysis)

## End(Not run)

dill/readdst documentation built on Sept. 23, 2021, 1:50 a.m.