Hi Stjepan

That occurs because thomas.estK calls internally Kest to compute the 
observed K and by default it computes up to 1/4 of the shortest side 
of your observational window.

To "customize" the range of distances you should go in two steps:

abal.K <- Kest (abal.ppp, r= seq(0,50, by = 0.5))
fitt_pp <- thomas.estK(abal.K, c(kappa=10, sigma2=0.1), *rmin* = 
NULL, *rmax* = 50)


By the way,  questions about spatstat are usually answered faster (or 
sometimes are only answered) if posted to the R-sig-geo list.

Cheers,

Marcelino




At 18:08 17/10/2012, stjepan mikac wrote:
>Dear all,
>I'm trying to fit point pattern using spatstat and thomas.estK command for
>distances r (0,50) but default values are only 0,25. Can I change this
>values and try to fit for all range of distances.
>
>fitt_pp <- thomas.estK(abal.ppp, c(kappa=10, sigma2=0.1), *rmin* = NULL,
>*rmax* = 50)
>/Error in mincontrast(K, theoret, startpar, ctrl = list(q = q, p = p, rmin =
>rmin,  :
>   rmax= 50 exceeds the range of available data = [ 0 , 25 ]/
>
>
>
>--
>View this message in context: 
>http://r-sig-ecology.471788.n2.nabble.com/fitting-point-pattern-using-spatstat-tp7577627.html
>Sent from the r-sig-ecology mailing list archive at Nabble.com.
>
>_______________________________________________
>R-sig-ecology mailing list
>R-sig-ecology@r-project.org
>https://stat.ethz.ch/mailman/listinfo/r-sig-ecology

____________________________________

Marcelino de la Cruz Rot
Depto. Biologia Vegetal
EUIT Agricola
Universidad Politecnica de Madrid

tel: 34 + 913365435
____________________________________  
	[[alternative HTML version deleted]]

