ScanSGWH_v0: Scan Spatial Groupwise Heteroscedasticity (SGWH) for Normal...

Description Usage Arguments Value References Examples

View source: R/ScanSGWH_v0.R

Description

Get the Scan Test for SGWH

Usage

1
ScanSGWH_v0(y = y, C = C, nv = nv, k = k, Nrep = Nrep)

Arguments

y

: Data vector Rx1

C

: Coordenate vector Rx2.

nv

: maximun number of neighbors inside cluster.

k

: Looking for only high incidence cluster (k=0); only low (k=1); both (k=2).

Nrep

: The number of Monte Carlo replications, e.g., 999, 9999

Value

The value of the test and Most Likelihood Cluster.

References

Chasco C., Le Gallo, J and López F.A. A Scan test for spatial groupwise heteroscedasticity in cross-sectional models with an application on houses prices in Madrid

Examples

1
2
3
4
5
6
y <- runif(100,0,1)
nv <- 25
k <- 2
Nrep <- 10
C <- cbind(runif(100,0,1),runif(100,0,1))
LR<-Scan <- ScanSGWH_v0(y=y,C=C,nv=nv,k=k,Nrep=Nrep)

f8l5h9/ScanSGWH documentation built on Feb. 3, 2022, 12:30 a.m.