Projects

Open-source tools I build and maintain. Each entry links to the GitHub repo and includes the project README.

Anti-correlation Gaussian Data Augmentation

Open-source · github.com/YuZh98/Anti-correlation-Gaussian

https://img.shields.io/badge/License-MIT-yellow.svg https://img.shields.io/badge/R-≥4.0-blue

Code accompanying the paper Gibbs Sampling using Anti-correlation Gaussian Data Augmentation, with Applications to L1-ball-type Models.


Files

FilePurpose
SourceCode.Rl1ball.linreg(X, y, ...): blocked Gibbs sampler for the L1-ball-prior linear regression model using the anti-correlation Gaussian data-augmentation step
SliceSampler.RScalar and directional slice samplers (Neal, 2003). Used to update κ; can be sourced standalone
LinearReg.RToy variable-selection demo (n = 300, p = 500) producing estimation, trace, and ACF plots
TruncatedMVN.RExtension of the anti-correlation trick to sampling a multivariate normal truncated to a box, plus a 2-D demo
tests/test_samplers.RSmoke + correctness tests

Quick start

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
source("SliceSampler.R")
source("SourceCode.R")

set.seed(1)
n <- 100; p <- 20
X <- matrix(rnorm(n * p), n, p)
beta_true <- c(rep(2, 5), rep(0, p - 5))
y <- as.numeric(X %*% beta_true + rnorm(n))

fit <- l1ball.linreg(X, y, steps = 4000, burnin = 2000, thin = 1,
                     init_method = "random", verbose = FALSE)
round(fit$theta.est, 2)

To reproduce the paper’s linear-regression figures:

Combinatorial Regression

Open-source · github.com/YuZh98/combinatorial-regression

https://img.shields.io/github/license/YuZh98/combinatorial-regression

Reproducibility code for the paper Statistical Modeling for Combinatorial Response Data. Includes the MH-within-Gibbs sampler, kernel comparison experiments, and waterfowl matching data analysis.


Quick Start

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Sanity check
make smoke
make probit_smoke

# Main simulation study (MH-within-Gibbs)
make full

# Kernel comparison (supplementary)
make kernel_compare

# Data analysis (waterfowl matching)
make duck_full      # full model
make duck_reduced   # reduced model

Simulation study

The default make full runs both exponential and half-Gaussian kernels. To run only the main-paper kernel:

latex2ufdissertation

Open-source · github.com/YuZh98/latex2ufdissertation

https://github.com/YuZh98/latex2ufdissertation/actions/workflows/ci.yml/badge.svg?branch=main https://img.shields.io/badge/License-MIT-yellow.svg https://img.shields.io/badge/python-3.10%2B-blue.svg

A safety-net validator for UF doctoral dissertations using the Fall 2025+ University of Florida LaTeX template. Given a project archive, project directory, git URL, or compiled PDF, it produces a severity-tiered report citing the originating UF rule for each finding — one more pair of eyes before clicking submit.