Skip to content

An R source code for smoothing varying regularization.

License

Notifications You must be signed in to change notification settings

ShuichiKawano/SVaRu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Smoothing varying regularization (SVaRu)

Author: Shuichi Kawano, Daeju Kim, and Yoshiyuki Ninomiya

This is an R source code for performing smoothing varying regularization (SVaRu). The directory R includes many files that perform SVaRu. Among them, most important file is given as follows.

  • SVaRu.R provides SVaRu with the values of tuning parameters selected by generalized information criterion.

SVaRu is introduced in the paper: Kim, D., Kawano, S. and Ninomiya, Y. (2023) Smoothly varying regularization. Computational Statistics & Data Analysis. 179, 107644 (doi: 10.1016/j.csda.2022.107644).

The zip file "SimulationRealdata.zip" also includes source codes to perform simulations and real data analysis in the above paper.

Usage example

Read source files.

source("R/SVaRu.R")

Setting of simulation.

source("R/sample_generation.R")
n_sample <- 200 # sample size
sample <- sample_generation(n_sample)
exp_data <- sample$exp_data
res_data <- sample$res_data
basis_num_vec <- 40 # candidates of the number of basis functions
width_para <- 10^(-1.5) # width of basis functions
start_gamma_1 <- exp(-5) # minimum value of candidates of the hyper-tuning parameter gamma_1
end_gamma_1 <- exp(-1) # maximum value of candidates of the hyper-tuning parameter gamma_1
start_gamma_2 <- exp(-5)  # minimum value of candidates of the hyper-tuning parameter gamma_2
end_gamma_2 <- exp(-1) # maximum value of candidates of the hyper-tuning parameter gamma_2
n_gamma <- 10 # the number of candidates of the hyper-tuning parameters
gam_1_vec <- seq(start_gamma_1, end_gamma_1, length = n_gamma)
gam_2_vec <- seq(start_gamma_2, end_gamma_2, length = n_gamma)

Perform SVaRu.

# Perform SVaRu in the file SVaRu.R
SVaRu(exp_data, res_data, basis_num_vec, width_para, gam_1_vec, gam_2_vec)

About

An R source code for smoothing varying regularization.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages