Skip to contents

Replicate MGWR config

Usage

# S4 method for MGWRConfig
rep(x, ...)

# S4 method for MGWRConfig,numeric
rep.int(x, times = 1)

Arguments

x

A MGWRConfig object.

...

Additional arguments.

times

Replication times.

Value

A list of MGWRConfig objects.

Examples

rep(mgwr_config(36, TRUE, "bisquare"), 4)
#> [[1]]
#> An object of class "MGWRConfig"
#> Slot "bw":
#> [1] 36
#> 
#> Slot "adaptive":
#> [1] TRUE
#> 
#> Slot "kernel":
#> [1] "bisquare"
#> 
#> Slot "longlat":
#> [1] FALSE
#> 
#> Slot "p":
#> [1] 2
#> 
#> Slot "theta":
#> [1] 0
#> 
#> Slot "centered":
#> [1] TRUE
#> 
#> Slot "optim_bw":
#> [1] "AIC"
#> 
#> Slot "optim_threshold":
#> [1] 1e-05
#> 
#> 
#> [[2]]
#> An object of class "MGWRConfig"
#> Slot "bw":
#> [1] 36
#> 
#> Slot "adaptive":
#> [1] TRUE
#> 
#> Slot "kernel":
#> [1] "bisquare"
#> 
#> Slot "longlat":
#> [1] FALSE
#> 
#> Slot "p":
#> [1] 2
#> 
#> Slot "theta":
#> [1] 0
#> 
#> Slot "centered":
#> [1] TRUE
#> 
#> Slot "optim_bw":
#> [1] "AIC"
#> 
#> Slot "optim_threshold":
#> [1] 1e-05
#> 
#> 
#> [[3]]
#> An object of class "MGWRConfig"
#> Slot "bw":
#> [1] 36
#> 
#> Slot "adaptive":
#> [1] TRUE
#> 
#> Slot "kernel":
#> [1] "bisquare"
#> 
#> Slot "longlat":
#> [1] FALSE
#> 
#> Slot "p":
#> [1] 2
#> 
#> Slot "theta":
#> [1] 0
#> 
#> Slot "centered":
#> [1] TRUE
#> 
#> Slot "optim_bw":
#> [1] "AIC"
#> 
#> Slot "optim_threshold":
#> [1] 1e-05
#> 
#> 
#> [[4]]
#> An object of class "MGWRConfig"
#> Slot "bw":
#> [1] 36
#> 
#> Slot "adaptive":
#> [1] TRUE
#> 
#> Slot "kernel":
#> [1] "bisquare"
#> 
#> Slot "longlat":
#> [1] FALSE
#> 
#> Slot "p":
#> [1] 2
#> 
#> Slot "theta":
#> [1] 0
#> 
#> Slot "centered":
#> [1] TRUE
#> 
#> Slot "optim_bw":
#> [1] "AIC"
#> 
#> Slot "optim_threshold":
#> [1] 1e-05
#> 
#>