[R-sig-Geo] spatstat - kppm function

Fernanda De Bastiani fernandadebastiani at gmail.com
Tue Jun 6 23:57:49 CEST 2017


Dear Sir/Madam,

I am trying to use function kppm() of spatstat package with anisotropic
covariance option as the following:
#-------------------------------------------
  kppm(redwood, ~x, "LGCP", statistic="pcf",  covmodel=list(model="matern",
nu=0.3, Aniso = matrix(nc=2, c(1.5, 3, -3, 4))))
#-------------------------------------------
but it gives me an error message:

Error in rfInit(model = p, x = x, y = y, z = z, T = T, grid = grid,
distances = distances,  :
  'RFcov' :  'Aniso' : not of the required size: (2, 2) instead of
(undetermined, 1)

Please, could anyone help me to understand in which conditions nc=2 will
work?

Many thanks,
Fernanda

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list