explaingit

jacobjameson/tte_cc

Analysis updated 2026-05-18

0RAudience · researcherComplexity · 4/5Setup · moderate

TLDR

A set of Claude Code skills and an R toolkit that walk you through target trial emulation, a rigorous way to estimate cause and effect from observational data.

Mindmap

mindmap
  root((TTE_CC))
    What it does
      Target trial emulation
      Interviews the researcher
      Pushes back on bad design
    Tech stack
      R
      Claude Code skills
      Bash installer
    Use cases
      Estimate treatment effects
      Emulate a randomized trial
      Analyze observational data
    Audience
      Researchers
      Data scientists

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Design a rigorous causal inference study using the target trial framework.

USE CASE 2

Estimate the effect of a treatment or exposure from observational, non-randomized data.

USE CASE 3

Generate transparent R code for matching, standardization, or IP weighting analyses.

USE CASE 4

Check and report how well an emulated trial holds up using synthetic teaching data.

What is it built with?

RClaude CodeBash

How does it compare?

jacobjameson/tte_cchadley/loggeryulab-smu/cast3d
Stars012
LanguageRRR
Last pushed2024-10-16
MaintenanceStale
Setup difficultymoderateeasyeasy
Complexity4/52/52/5
Audienceresearcherdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Running the R engine directly requires installing several R packages like survival and MatchIt.

No license information is provided in the README.

In plain English

TTE_CC is a toolkit for a statistics method called target trial emulation, packaged as a set of Claude Code skills plus a small R helper library. Target trial emulation is a way of estimating whether something like a treatment or vaccine actually causes an effect, using real world observational data rather than a randomized experiment, by first carefully defining what a hypothetical randomized trial would have looked like, then recreating that trial as closely as possible with the data on hand. The skills are built to be interactive and opinionated. Instead of just running numbers, they interview the user about their study design and push back on common mistakes, like comparing people who already started treatment, poorly defined treatment strategies, or a mismatched starting point for follow-up. The idea is that a trustworthy answer depends on first asking a well-defined question. The project follows a published academic framework for this kind of analysis and is modeled on how it is taught at Harvard, though it is an independent, unaffiliated project with its own entirely made-up teaching data rather than any real course materials. The toolkit is organized around two steps: first specifying the causal question through an eight-part protocol covering things like eligibility, treatment strategies, and follow-up, then emulating that trial with appropriate statistical methods and honestly reporting how well the emulation held up. Individual skills cover specifying the trial, aligning the starting point correctly, handling competing events like death, choosing an emulation method, handling long-term sustained treatment strategies, generating the actual R analysis code, and checking or reporting results. Underneath the skills sits an R engine with functions for building risk curves, matching, standardization, weighting, and bootstrapped confidence intervals, plus fully synthetic example datasets describing a fictional vaccine so every example can run immediately without needing real patient data. Installing it is a single terminal command that downloads the toolkit and links the skills into Claude Code, after which commands like /target-trial become available. Using the R engine directly requires installing several R packages such as survival, MatchIt, and ggplot2.

Copy-paste prompts

Prompt 1
Walk me through installing TTE_CC and running the target-trial skill in Claude Code.
Prompt 2
Explain what target trial emulation is and why time zero alignment matters.
Prompt 3
Help me specify the eight elements of a target trial protocol for my dataset.
Prompt 4
Show me how to use tte-estimate to generate pooled logistic risk curves in R.
Prompt 5
Explain the difference between matching, standardization, and IP weighting in this toolkit.

Frequently asked questions

What is tte_cc?

A set of Claude Code skills and an R toolkit that walk you through target trial emulation, a rigorous way to estimate cause and effect from observational data.

What language is tte_cc written in?

Mainly R. The stack also includes R, Claude Code, Bash.

What license does tte_cc use?

No license information is provided in the README.

How hard is tte_cc to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is tte_cc for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.