Spline Functions
CommunityMaster R splines for flexible modeling.
Authorntluong95
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps users understand and implement various spline basis functions in R, crucial for modeling non-linear relationships in statistical and epidemiological analyses.
Core Features & Use Cases
- Spline Types: Explains natural cubic splines (
ns), B-splines (bs), P-splines (ps), and cubic regression splines (cr). - Key Concepts: Covers degrees of freedom (
df) and knot placement strategies (equal spacing, percentiles, log-scale). - Use Case: When building a DLNM model, use this Skill to correctly define the
argvarandarglagarguments with appropriate spline functions and knot configurations for accurate exposure-lag-response modeling.
Quick Start
Use the Spline Functions skill to create a natural cubic spline with 4 degrees of freedom for a variable named 'exposure'.
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: Spline Functions Download link: https://github.com/ntluong95/agent-skills-statistics/archive/main.zip#spline-functions 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.