Learn R Programming

Biolinv (version 0.1-3)

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

Description

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

Usage

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.

Examples

Run this code
# NOT RUN {
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))
 
# }

Run the code above in your browser using DataLab