Fit.Model.Clusters.TS.ST: Fit.Model.Clusters.ST

Description Usage Arguments Examples

View source: R/twostage_SpTm.R

Description

Fit a simple linear regression model with detected clusters.

Usage

1
Fit.Model.Clusters.TS.ST(yList, XList, Cls1st, Cls2nd)

Arguments

yList

The input data (as a list of vectors).

XList

The input data (as a list of matrices).

Cls1st

Output from Find.Clusters.TS.ST1() function in the 1st Stage.

Cls2nd

Output from Find.Clusters.TS.ST2() function in the 2nd Stage.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
data("SE_FakeData_SpTm")
long <- SE_FakeData_SpTm$long
lat <- SE_FakeData_SpTm$lat
yList <-list()
yList[[1]] <- SE_FakeData_SpTm$y1
yList[[2]] <- SE_FakeData_SpTm$y2
yList[[3]] <- SE_FakeData_SpTm$y3
XList <-list()
XList[[1]] <- cbind(rep(1,length(long)), SE_FakeData_SpTm$x1)
XList[[2]] <- cbind(rep(1,length(long)), SE_FakeData_SpTm$x2)
XList[[3]] <- cbind(rep(1,length(long)), SE_FakeData_SpTm$x3)
MR <- 300; M <- 2
Clusters_ts1N <- Find.Clusters.TS.ST1(yList, XList, long, lat,
MR, M, overlap=FALSE, alpha=0.05)

### With the Bonferroni correction
Clusters_ts1B <- Find.Clusters.TS.ST1(yList, XList, long, lat,
MR, M, overlap=FALSE, alpha=(0.05/2))

mkamenet3/coefclust documentation built on June 28, 2020, 10:41 a.m.