modSel: Wrapper for function spatSim() which allows use on multiple...

Description Usage Arguments Value Author(s) Examples

View source: R/modSel.R

Description

This function uses spatSim() function to compare many simulated datasets with one, typically observed, data set.

Usage

1
modSel(WIN, M0, M2, AV, RAD)

Arguments

WIN

window of observation for the point patterns (MOD0 and MOD2)(see ?spatstat.geom::owin). Object of class 'sp::owin'.

M0

data frame containing 'y' and 'x' coordinates (projected coordinate system) to compare with M2.

M2

list of dataframes with same structure of M0, typically generated with simulacro() function.

AV

numeric vector of the Alpha values of the simulated datasets in the same order as in the list of argument M2. Used to save the output data frame.

RAD

numeric vector of search distances for the K-function.

Value

data frame with two columns. 'dissimilarity': dissimilarity values as computed by spatSim() function. 'compAlpha': same as AV.

Author(s)

Luca Butikofer

Examples

1
2
3
4
5
6
7
8
9
data(nzw)
data(frogsEM)  #see EM().
data(frogsLacro)  #see simulacro().

## Not run: 
frogsSum<- modSel(WIN= nzw, M0= frogsEM, M2= frogsLacro,
 AV= c(2,3,4.5,7.5,11,15,20,25), RAD= seq(0,30000,1000))
 
## End(Not run)

Biolinv documentation built on March 30, 2021, 5:13 p.m.

Related to modSel in Biolinv...