Penalized DLNM Framework

Community

Automate DLNM smoothing with GAMs

Authorntluong95
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of selecting appropriate smoothing parameters for Distributed Lag Non-Linear Models (DLNMs) by automating the process using penalized splines and Generalized Additive Models (GAMs).

Core Features & Use Cases

  • Automatic Smoothing: Leverages mgcv::gam() and cbPen() to estimate optimal smoothing parameters from data, removing the need for manual selection.
  • Flexible Model Fitting: Integrates penalized cross-basis terms with other smooth terms (e.g., s(date)) within a GAM framework.
  • Use Case: When exploring exposure-lag-response relationships where the optimal degree of smoothness is uncertain, this Skill provides a data-driven approach to model fitting, ensuring more robust and reproducible results.

Quick Start

Use the Penalized DLNM Framework skill to fit a GAM model with penalized cross-basis terms for exposure and date.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Penalized DLNM Framework
Download link: https://github.com/ntluong95/agent-skills-statistics/archive/main.zip#penalized-dlnm-framework

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.