Cross-Basis Construction
CommunityBuild DLNM exposure-lag relationships
Authorntluong95
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill simplifies the complex process of constructing bi-dimensional cross-basis matrices, which are essential for modeling both exposure-response and lag-response relationships simultaneously in Distributed Lag Non-Linear Models (DLNMs).
Core Features & Use Cases
- Flexible Basis Functions: Supports various basis functions like natural cubic splines (
ns), B-splines (bs), and penalized splines (ps) for both exposure and lag dimensions. - Optimized Knot Placement: Provides guidance on placing knots effectively for both exposure (e.g., percentiles) and lag (e.g., log scale) dimensions to avoid overfitting.
- Key Argument Guidance: Explains crucial arguments like
lag,argvar, andarglagfor accurate model specification. - Use Case: When analyzing the impact of daily temperature on mortality, use this Skill to define how temperature variations and their effects over subsequent days are modeled.
Quick Start
Construct a cross-basis matrix for a daily temperature exposure with a 21-day lag, using natural cubic splines for both dimensions with appropriate knot placements.
Dependency Matrix
Required Modules
None requiredComponents
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: Cross-Basis Construction Download link: https://github.com/ntluong95/agent-skills-statistics/archive/main.zip#cross-basis-construction Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.