R/spatial.location.R

Defines functions `spatial.location`

`spatial.location` <-
function(X, score=c("sign","signrank"), init=NULL, shape=TRUE, steps=Inf, maxiter=500, eps=1e-6, na.action=na.fail)
{ 
 X <- na.action(X)

 score<-match.arg(score)
 switch(score,
       "sign"=
       ae.spatial.median(X, init=init, shape=shape, steps=steps, 
       maxiter=maxiter, eps=eps) 
       ,
       "signrank"=
       ae.hl.estimate(X, init=init, shape=shape, steps=steps,
       maxiter=maxiter, eps=eps)
       )
}

Try the SpatialNP package in your browser

Any scripts or data that you put into this service are public.

SpatialNP documentation built on March 18, 2022, 8:02 p.m.