dblasso: Fit Debiased LASSO with Transfer Learning

View source: R/5_dblasso.R

dblassoR Documentation

Fit Debiased LASSO with Transfer Learning

Description

Fits a debiased LASSO regression model under transfer learning framework, supporting feature selection and coefficient estimation by combining target and source data.

Usage

dblasso(
  target,
  source = NULL,
  transfer = FALSE,
  level = 0.95,
  lambda = "lambda.1se"
)

Arguments

target

A list containing two elements:

  • x: Feature matrix of target data (numeric matrix)

  • y: Response vector of target data (numeric vector)

Required.

source

A list (optional, default: NULL) containing two elements:

  • x: Feature matrix of source data (numeric matrix)

  • y: Response vector of source data (numeric vector)

Used when transfer = TRUE.

transfer

A logical value (default: FALSE) indicating whether to enable transfer learning (combining source data with target data for estimation).

level

A numeric value (default: 0.95) specifying confidence level for confidence intervals.

lambda

A string specifying criterion for selecting regularization parameter:

  • 'lambda.min': Lambda value giving minimum cross-validation error

  • 'lambda.1se': Largest lambda within 1 standard error of minimum error

Details

The variance estimator follows Algorithm 3 of Tian and Feng (2023). For Gaussian linear models, it assumes unit error variance. Under the required source-target heterogeneity conditions, pooled source and target design information is used to estimate the correlation structure, while the debiasing correction is based on target-domain data. This assumption is not automatically verified by the function.

Value

A list containing:

  • dbcoef.hat: Debiased LASSO coefficient vector (including intercept)

  • coef.hat: Original LASSO coefficient vector

  • CI: Data frame with confidence intervals (lb = lower bound, ub = upper bound)

  • var.est: Variance estimates for debiased coefficients

  • se.est: Standard errors for debiased coefficients

  • P.value: Vector of p-values for coefficients


TransHDM documentation built on Nov. 24, 2026, 9:06 a.m.