par.admbsecr: Parallelising admbsecr fits using a cluster

Description Usage Arguments Value Examples

Description

Fits SECR models on different cores within a cluster.

Usage

1
par.admbsecr(n.cores, ..., arg.list = NULL)

Arguments

n.cores

A positive integer representing the number of cores to use for parallel processing.

...

Lists with components comprising arguments for a call to admbsecr. Component names must be the argument names.

arg.list

Alternatively, a list with components comprising the lists of arguments, as above.

Value

A list, where components are objects returned by admbsecr. There is one component for each list of arguments provide in ....

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
## Running the examples in the admbsecr() documentation in parallel.
simple.capt <- example$capt["bincapt"]
simple.hn.args <- list(capt = simple.capt, traps = example$traps,
                       mask = example$mask, fix = list(g0 = 1))
simple.hr.args <- list(capt = simple.capt, traps = example$traps,
                       mask = example$mask, detfn = "hr")
bearing.capt <- example$capt[c("bincapt", "bearing")]
bearing.hn.args <- list(capt = bearing.capt, traps = example$traps,
                        mask = example$mask, fix = list(g0 = 1))
## This will only run if you have 4 cores available, you may need
## to alter n.cores as appropriate.
fits <- par.admbsecr(n.cores = 4, simple.hn.args, simple.hr.args,
                     bearing.hn.args)

## End(Not run)

b-steve/admbsecr documentation built on May 11, 2019, 5:20 p.m.