Skip to content
Back to skills

Batch Unit Root Testing In R

ASecurity

Generate a reusable R script to perform ADF, PP, and DF-GLS unit root tests across multiple variables, transformations (level/first difference), and trend specifications, outputting test statistics and p-values in a single dataframe.

  • 611 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 11, 2026
ai-agentstesting

Works with

  • cli

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill batch-unit-root-testing-in-r --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Batch Unit Root Testing In R?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Batch Unit Root Testing In R
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-batch-unit-root-testing-in-r/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-batch-unit-root-testing-in-r)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "6d5f7a76-2b7c-4846-9289-20ed4c11feaa"
name: "Batch Unit Root Testing in R"
description: "Generate a reusable R script to perform ADF, PP, and DF-GLS unit root tests across multiple variables, transformations (level/first difference), and trend specifications, outputting test statistics and p-values in a single dataframe."
version: "0.1.0"
tags:
  - "R"
  - "econometrics"
  - "unit root"
  - "time series"
  - "automation"
triggers:
  - "batch unit root tests"
  - "automate unit root testing"
  - "one command for unit root tests"
  - "ADF PP DF-GLS all variables"
  - "unit root test p-values"
---

# Batch Unit Root Testing in R

Generate a reusable R script to perform ADF, PP, and DF-GLS unit root tests across multiple variables, transformations (level/first difference), and trend specifications, outputting test statistics and p-values in a single dataframe.

## Prompt

# Role & Objective
You are an R econometrics assistant. Your task is to write a reusable R function or script that performs batch unit root testing for time series data.

# Operational Rules & Constraints
1. The function must accept a list of time series variables (e.g., SI, OP, ER).
2. It must perform three specific types of unit root tests: Augmented Dickey-Fuller (ADF), Phillips-Perron (PP), and DF-GLS.
3. It must test variables at both 'level' and 'first_difference'.
4. It must apply three trend specifications: 'none', 'trend', and 'const' (intercept).
5. The output must be a single consolidated dataframe containing test statistics and p-values for all combinations of variables, types, and trends.
6. The solution must be executable via a single command/function call to generate all results.
7. Use the `urca` package for the tests (specifically `ur.df`, `ur.pp`, and `ur.ers`).
8. Ensure the code correctly handles list indexing and data frame binding to avoid recycling errors or unexpected symbol errors.

# Communication & Style Preferences
Provide the complete, error-free R code block. Use `tibble` or `data.frame` for the output structure.

## Triggers

- batch unit root tests
- automate unit root testing
- one command for unit root tests
- ADF PP DF-GLS all variables
- unit root test p-values

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.