model.summary: Create summary table for a model run

Description Usage Arguments Value Examples

View source: R/summary.R

Description

Given a list of populations, probably produced from running a model (see multiple.step), create a summary table, one row per generation.

Usage

1
model.summary(p.list, sigma = 1, file.csv = NA)

Arguments

p.list

A list of point populations (.ppp)

sigma

Bandwidth used for calculating density for each generation

file.csv

A file name as a string or NA. If not NA, then a csv file using this name is created.

Value

A dataframe, one row per generation, showing summary statistics for the population.

Examples

1
2
3
4
5
6
7
8
# Create a default population
p <- create_ibm_population()
# Create bigger window for population to expand
p$window <- owin(c(-50,50),c(-50,50),unitname="metres")
# Use default parameters for behaviour.
pm <- multiple.step(steps=5,curr.pop=p,move.table=movement.table(),
survival.table(),breeding.table(),habitat.surface=NA,crowding.table())
print(model.summary(pm))

pwhigham/spatibm documentation built on Aug. 30, 2019, 1:16 p.m.