Attributes to the populations in an invasion time series a probability value of being of natural origin, as opposite of anthropogenic origin.
Usage
EM(dataset, randompoints, sigma, pi)
Arguments
dataset
the data frame to be analised (WGS84, colums order should be "year","lat","long","origin")
randompoints
data frame of 'y' and 'x' coordinates of random points (projected coordinate system)
sigma
starting value for the standard deviation of the natural dispersal kernel (assumed to be a half normal)
pi
starting value for the proportion of natural points in the dataset
Value
dataset argument with two additional colums. 'dist': distance from nearest point of natural origin or nearest anchor point (see Details); 'Pnat': probability of being of natural origin.