{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-data-analysis-table-1-generator-advanced-d736bc23e184","title":"Generate Publication-Ready Baseline Characteristics Table (Table 1)","summary":"Automated generation of baseline characteristics tables for clinical research papers with APA formatting, statistical analysis, and support for variable type detection and group comparisons.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-table-1-generator-advanced-d736bc23e184","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-table-1-generator-advanced-d736bc23e184","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-table-1-generator-advanced-d736bc23e184.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-table-1-generator-advanced-d736bc23e184\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Ensure the input CSV file contains the required columns and that the grouping variable is correctly specified. If missing data exceeds 5%, the output will include a missing data appendix.","instructions":"---\nname: table-1-generator-advanced\ndescription: Generate publication-ready baseline characteristics tables (Table 1) for clinical research papers with automatic variable type detection, appropriate statistics (mean\u00b1SD, median[IQR, n(%)), group comparisons (t-test, chi-square), and APA formatting.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# Table 1 Generator\n\nAutomated generation of baseline characteristics tables (Table 1) for clinical research papers.\n\n## Quick Check\n\nUse this command to verify that the packaged script entry point can be parsed before deeper execution.\n\n```bash\npython -m py_compile scripts\/main.py\n```\n\n## Audit-Ready Commands\n\nUse these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.\n\n```bash\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\n```\n\n## When to Use\n\n**Trigger phrases**: \"Table 1\", \"baseline characteristics\", \"demographic table\", \"clinical trial table\", \"summary statistics table\"\n\n- Generating baseline characteristics tables (Table 1) for clinical research manuscripts\n- Comparing demographic and clinical variables across treatment groups\n- Creating summary statistics tables for clinical trial reports\n- Producing publication-ready tables with APA formatting\n\n## Workflow\n\n1. **Load and validate data** \u2014 Input: CSV file path via `--data` \u2192 verify columns exist, check for missing values, detect data types (continuous\/categorical) \u2192 Output: data schema report\n2. **Identify grouping variable** \u2014 Input: `--group` column name (e.g., treatment\/control) \u2192 verify group balance \u2192 Output: group distribution summary\n3. **Select variables** \u2014 Input: `--vars` list or auto-detect all eligible columns \u2192 classify each as continuous or categorical \u2192 Output: variable classification table\n4. **Compute statistics** \u2014 Continuous: mean\u00b1SD or median[IQR] (based on normality); Categorical: n(%); Group comparisons: t-test\/chi-square \u2192 \u26d4 Checkpoint: Confirm statistical method choices with user if normality is borderline \u2192 Output: statistics matrix\n5. **Format Table 1** \u2014 Apply APA formatting, add p-values, footnotes for abbreviations \u2192 Output: `--output` CSV\/Excel file\n6. **Report missing data** \u2014 Summarize missingness per variable, flag if >5% missing \u2192 Output: missing data appendix\n\n## Usage\n\n```text\npython scripts\/main.py --data patients.csv --group treatment --output table1.csv\n```\n\n## Parameters\n\n| Parameter | Type | Required | Default | Description |\n|-----------|------|----------|---------|-------------|\n| `--data` | str | Yes | - | Patient data CSV file path |\n| `--group` | str | No | - | Grouping variable (e.g., treatment\/control) |\n| `--vars` | list[str] | No | - | Variables to include in the table |\n| `--output` | str | Yes | - | Output file path for Table 1 |\n\n## Features\n\n- Automatic variable type detection\n- Appropriate statistics (mean\u00b1SD, median[IQR], n(%))\n- Group comparisons (t-test, chi-square)\n- Missing data reporting\n- APA formatting\n\n## Output\n\n- Table 1 (CSV\/Excel)\n- Statistical test results\n- Formatted for publication\n\n## Risk Assessment\n\n| Risk Indicator | Assessment | Level |\n|----------------|------------|-------|\n| Code Execution | Python\/R scripts executed locally | Medium |\n| Network Access | No external API calls | Low |\n| File System Access | Read input files, write output files | Medium |\n| Instruction Tampering | Standard prompt guidelines | Low |\n| Data Exposure | Output files saved to workspace | Low |\n\n## Security Checklist\n\n- [ ] No hardcoded credentials or API keys\n- [ ] No unauthorized file system access (..\/)\n- [ ] Output does not expose sensitive information\n- [ ] Prompt injection protections in place\n- [ ] Input file paths validated (no ..\/ traversal)\n- [ ] Output directory restricted to workspace\n- [ ] Script execution in sandboxed environment\n- [ ] Error messages sanitized (no stack traces exposed)\n- [ ] Dependencies audited\n\n## Prerequisites\n\n```text\n# Python dependencies\npip install -r requirements.txt\n```\n\n## Evaluation Criteria\n\n### Success Metrics\n- [ ] Successfully executes main functionality\n- [ ] Output meets quality standards\n- [ ] Handles edge cases gracefully\n- [ ] Performance is acceptable\n\n### Test Cases\n1. **Basic Functionality**: Standard input \u2192 Expected output\n2. **Edge Case**: Invalid input \u2192 Graceful error handling\n3. **Performance**: Large dataset \u2192 Acceptable processing time\n\n## Lifecycle Status\n\n- **Current Stage**: Draft\n- **Next Review Date**: 2026-03-06\n- **Known Issues**: None\n- **Planned Improvements**: \n  - Performance optimization\n  - Additional feature support\n\n## Output Requirements\n\nEvery final response should make these items explicit when they are relevant:\n\n- Objective or requested deliverable\n- Inputs used and assumptions introduced\n- Workflow or decision path\n- Core result, recommendation, or artifact\n- Constraints, risks, caveats, or validation needs\n- Unresolved items and next-step checks\n\n## Error Handling\n\n- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.\n- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.\n- If `scripts\/main.py` fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.\n- Do not fabricate files, citations, data, search results, or execution outcomes.\n\n## Input Validation\n\nThis skill accepts requests that match the documented purpose of `table-1-generator` and include enough context to complete the workflow safely.\n\nDo not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:\n\n> `table-1-generator` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.\n\n## Response Template\n\nUse the following fixed structure for non-trivial requests:\n\n1. Objective\n2. Inputs Received\n3. Assumptions\n4. Workflow\n5. Deliverable\n6. Risks and Limits\n7. Next Checks\n\nIf the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.\n","use_cases":["Generating baseline characteristics tables (Table 1) for clinical research manuscripts","Comparing demographic and clinical variables across treatment groups","Creating summary statistics tables for clinical trial reports","Producing publication-ready tables with APA formatting"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Data%20Analysis\/table-1-generator-advanced\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T13:01:39.000000Z","updated_at":"2026-11-24T12:17:28.000000Z","seo_title":"Generate Table 1 for Clinical Research Papers","seo_description":"Automate the creation of publication-ready baseline characteristics tables with statistical analysis and APA formatting for clinical research papers.","seo_keywords":["Table 1 generator","Baseline characteristics table","Clinical research table","APA formatted table","Demographic table generator"]}}