Learn R Programming

GWlasso (version 1.0.1)

print.gwlest: Printing gwlest objects

Description

Printing gwlest objects

Usage

# S3 method for gwlest
print(x, ...)

Value

this function print key elements of a gwlest object

Arguments

x

an object of class gwlest

...

ellipsis for S3 method compatibility

Examples

Run this code

predictors <- matrix(data = rnorm(2500), 50,50)
y_value <- sample(1:1000, 50)
coords <- data.frame("Lat" = rnorm(50), "Long" = rnorm(50))
distance_matrix <- compute_distance_matrix(coords)

# \donttest{
myst.est <- gwl_bw_estimation(x.var = predictors, 
                              y.var = y_value,
                              dist.mat = distance_matrix,
                              adaptive = TRUE,
                              adptbwd.thresh = 0.5,
                              kernel = "bisquare",
                              alpha = 1,
                              progress = TRUE,
                              n=10,
                              nfolds = 5)
  
myst.est
 # } 

Run the code above in your browser using DataLab