Learn R Programming

secrdesign (version 2.5.5)

make.array: Re-cast Simulated Statistical Output as Array

Description

This function is used internally by summary.secrdesign, and may occasionally be of general use.

Usage

make.array(object)

Arguments

object

secrdesign object containing numerical values for a particular parameter (i.e. output from select.stats inheriting from `selectedstatistics')

Value

A numeric array with dimensions corresponding to the varying inputs.

Details

make.array converts a particular simulated numerical output into an array with one dimension for each varying input.

See Also

run.scenarios

Examples

Run this code
# NOT RUN {
## collect raw counts
scen1 <- make.scenarios(D = c(5,10), sigma = 25, g0 = 0.2)
traps1 <- make.grid()
tmp1 <- run.scenarios(nrepl = 50, trapset = traps1, scenarios = scen1,
    fit = FALSE)
make.array(tmp1)
# }

Run the code above in your browser using DataLab