{
  "_id": "6ae5f2b7327abcdf8686a808",
  "Package": "tters",
  "Title": "Sequential Target Trial Emulation Data Expansion (Rust + Polars\nBackend)",
  "Version": "0.1.1",
  "Authors@R": "person(\"Michael\", \"Batech\", , \"oldschoolcool@gmail.com\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-9570-8180\"))",
  "Description": "Fast, verified data-expansion stage for sequential target\ntrial emulation, backed by a Rust and Polars engine via the\n'extendr' crate. Reproduces, bit-for-bit, the expansion output\nof the 'TrialEmulation' R package. The heavy lifting lives in\nthe 'tte-expand' Rust core crate; this package is a thin\nbinding layer.",
  "License": "Apache License (>= 2)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/rextendr/version": "0.5.0",
  "SystemRequirements": "Cargo (Rust's package manager), rustc >= 1.95.0",
  "URL": "https://github.com/oldschoolcool2/rust-tte,\nhttps://oldschoolcool2.r-universe.dev/tters",
  "BugReports": "https://github.com/oldschoolcool2/rust-tte/issues",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "libclang-dev",
  "Repository": "https://oldschoolcool2.r-universe.dev",
  "Date/Publication": "2026-07-03 15:21:10 UTC",
  "RemoteUrl": "https://github.com/oldschoolcool2/rust-tte",
  "RemoteRef": "main",
  "RemoteSha": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
  "RemoteSubdir": "bindings/tters",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-31 12:03:19 UTC",
    "User": "root"
  },
  "Author": "Michael Batech [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-9570-8180>)",
  "Maintainer": "Michael Batech <oldschoolcool@gmail.com>",
  "_user": "oldschoolcool2",
  "_type": "src",
  "_file": "tters_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/cdc26875648e449fd220bf7508cc79626d48f41b1cf3082f48b664467e32b868",
  "_filesize": 310630,
  "_sha256": "cdc26875648e449fd220bf7508cc79626d48f41b1cf3082f48b664467e32b868",
  "_expires": "2027-02-08T13:52:54.000Z",
  "_created": "2026-10-31T12:03:19.000Z",
  "_published": "2026-10-31T13:52:55.802Z",
  "_upstream": "https://github.com/oldschoolcool2/rust-tte",
  "_status": "success",
  "_maintainer": {
    "name": "Michael Batech",
    "email": "oldschoolcool@gmail.com",
    "login": "oldschoolcool2",
    "linkedin": "in/michaelbatech",
    "orcid": "0000-0001-9570-8180",
    "description": "Epidemiologist & biostatistician building AI for real-world evidence. Causal inference · agentic systems",
    "uuid": 8240016
  },
  "_jobs": [
    {
      "job": 124535834672,
      "time": 1023,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13042423713"
    },
    {
      "job": 124535834747,
      "time": 1219,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13042503851"
    },
    {
      "job": 124535834718,
      "time": 1036,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13042897686"
    },
    {
      "job": 124535834683,
      "time": 1260,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13042738635"
    },
    {
      "job": 124535834763,
      "time": 1845,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13045640048"
    },
    {
      "job": 124535834677,
      "time": 3056,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13043416940"
    },
    {
      "job": 124535834762,
      "time": 1635,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13045530445"
    },
    {
      "job": 124535834675,
      "time": 3177,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13044326404"
    },
    {
      "job": 124527958336,
      "time": 2306,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13042317292"
    },
    {
      "job": 124535834698,
      "time": 161,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 124535834766,
      "time": 2089,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13042964312"
    },
    {
      "job": 124535834725,
      "time": 2367,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13043283799"
    },
    {
      "job": 124535834755,
      "time": 1859,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13042864493"
    },
    {
      "job": 124535834707,
      "time": 2060,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13043074002"
    },
    {
      "job": 124535834734,
      "time": 2308,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13043500864"
    }
  ],
  "_buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/41197953345",
  "_commit": {
    "id": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
    "author": "Michael Batech <oldschoolcool@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #26 from oldschoolcool2/build/crate-docsrs-metadata\n\nbuild(tte-expand): document all features on docs.rs",
    "time": 1783092070
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2",
      "role": "Depends"
    },
    {
      "package": "bit64",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "arrow",
      "role": "Suggests"
    },
    {
      "package": "data.table",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "TrialEmulation",
      "version": ">= 0.0.4.11",
      "role": "Suggests"
    }
  ],
  "_owner": "oldschoolcool2",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-27",
      "n": 25
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-07-02"
    },
    {
      "name": "v0.1.1",
      "date": "2026-07-02"
    }
  ],
  "_topics": [
    "biostatistics",
    "causal-inference",
    "epidemiology",
    "extendr",
    "pharmacoepidemiology",
    "polars",
    "real-world-evidence",
    "reproducible-research",
    "rust",
    "target-trial-emulation",
    "cargo"
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "oldschoolcool2",
      "count": 120,
      "uuid": 8240016
    }
  ],
  "_userbio": {
    "uuid": 8240016,
    "type": "user",
    "name": "Michael Batech",
    "followers": 1,
    "description": "Epidemiologist & biostatistician building AI for real-world evidence. Causal inference · agentic systems"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tters"
  },
  "_devurl": "https://github.com/oldschoolcool2/rust-tte",
  "_searchresults": 0,
  "_cargo": true,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/tters.html"
  ],
  "_cranurl": false,
  "_exports": [
    "expand_df",
    "expand_parquet",
    "expand_trial",
    "expand_trial_df",
    "expand_trial_weighted",
    "expand_trial_weighted_df",
    "expand_trial_weighted_fitted",
    "expand_trial_weighted_fitted_df",
    "expand_trials_tters",
    "expand_weighted_df",
    "expand_weighted_fitted_df",
    "expand_weighted_fitted_parquet",
    "expand_weighted_parquet",
    "fit_trial_weights",
    "fit_trial_weights_df",
    "fit_weights_df",
    "fit_weights_parquet",
    "save_to_tters"
  ],
  "_help": [
    {
      "page": "expand_df",
      "title": "Expand an in-memory cohort 'data.frame' into the sequential target-trial layout and return the result as a 'data.frame' — the frame-in/frame-out analogue of 'expand_parquet()', with no intermediate Parquet.",
      "topics": [
        "expand_df"
      ]
    },
    {
      "page": "expand_parquet",
      "title": "Expand a prepared person-time Parquet dataset into the sequential target-trial layout and write the result to 'output_path'.",
      "topics": [
        "expand_parquet"
      ]
    },
    {
      "page": "expand_trial",
      "title": "Expand a target-trial person-time dataset (ergonomic wrapper)",
      "topics": [
        "expand_trial"
      ]
    },
    {
      "page": "expand_trial_df",
      "title": "Expand a target-trial cohort data.frame in memory (ergonomic wrapper)",
      "topics": [
        "expand_trial_df"
      ]
    },
    {
      "page": "expand_trial_weighted",
      "title": "Expand a dataset and attach pre-computed inverse-probability weights",
      "topics": [
        "expand_trial_weighted"
      ]
    },
    {
      "page": "expand_trial_weighted_df",
      "title": "Expand a cohort data.frame and attach pre-computed weights, in memory (wrapper)",
      "topics": [
        "expand_trial_weighted_df"
      ]
    },
    {
      "page": "expand_trial_weighted_fitted",
      "title": "Fit IPW weights and expand a cohort into a weighted trial frame (ergonomic wrapper)",
      "topics": [
        "expand_trial_weighted_fitted"
      ]
    },
    {
      "page": "expand_trial_weighted_fitted_df",
      "title": "Fit IPW weights and expand a cohort data.frame in one call, in memory (wrapper)",
      "topics": [
        "expand_trial_weighted_fitted_df"
      ]
    },
    {
      "page": "expand_trials_tters",
      "title": "Expand a sequence of target trials with the Rust + Polars engine",
      "topics": [
        "expand_trials_tters"
      ]
    },
    {
      "page": "expand_weighted_df",
      "title": "Expand an in-memory cohort and attach pre-computed inverse-probability weights, returning the weighted frame as a 'data.frame' — the frame-in/frame-out analogue of 'expand_weighted_parquet()'.",
      "topics": [
        "expand_weighted_df"
      ]
    },
    {
      "page": "expand_weighted_fitted_df",
      "title": "Fit the IPW weights for an in-memory cohort, expand, apply, and return the weighted trial frame as a 'data.frame' — a raw cohort 'data.frame' straight to a weighted, expanded 'data.frame' in one call (no pre-computed factor table, no intermediate Parquet). The frame-in/frame-out analogue of 'expand_weighted_fitted_parquet()'. A 64-bit integer 'id' ('bit64::integer64') round-trips exactly.",
      "topics": [
        "expand_weighted_fitted_df"
      ]
    },
    {
      "page": "expand_weighted_fitted_parquet",
      "title": "Fit the IPW weights in Rust, expand the cohort, apply the weights, and write the weighted trial frame — a raw cohort to a weighted, expanded frame in one call (no pre-computed factor table).",
      "topics": [
        "expand_weighted_fitted_parquet"
      ]
    },
    {
      "page": "expand_weighted_parquet",
      "title": "Expand a person-time Parquet dataset and attach pre-computed inverse-probability weights, writing the weighted frame to 'output_path'.",
      "topics": [
        "expand_weighted_parquet"
      ]
    },
    {
      "page": "fit_trial_weights",
      "title": "Fit inverse-probability weights for a target-trial cohort (ergonomic wrapper)",
      "topics": [
        "fit_trial_weights"
      ]
    },
    {
      "page": "fit_trial_weights_df",
      "title": "Fit inverse-probability weights for a cohort data.frame, in memory (wrapper)",
      "topics": [
        "fit_trial_weights_df"
      ]
    },
    {
      "page": "fit_weights_df",
      "title": "Fit the inverse-probability weight factor for an in-memory cohort and return the per-(id, period) factor table (id, period, weight_factor) as a 'data.frame' — the frame-in/frame-out analogue of 'fit_weights_parquet()'.",
      "topics": [
        "fit_weights_df"
      ]
    },
    {
      "page": "fit_weights_parquet",
      "title": "Fit the inverse-probability *weight factor* for a Parquet cohort in Rust and write the per-(id, period) factor table (id, period, weight_factor).",
      "topics": [
        "fit_weights_parquet"
      ]
    },
    {
      "page": "save_to_tters",
      "title": "Create a 'te_datastore_tters' storage backend",
      "concept": [
        "save_to"
      ],
      "topics": [
        "save_to_tters"
      ]
    }
  ],
  "_readme": "https://github.com/oldschoolcool2/rust-tte/raw/main/bindings/tters/README.md",
  "_rundeps": [
    "bit",
    "bit64"
  ],
  "_vignettes": [
    {
      "source": "tters.Rmd",
      "filename": "tters.html",
      "title": "Using tters with TrialEmulation",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Install",
        "Standalone: expand a cohort in memory",
        "As a TrialEmulation backend"
      ],
      "created": "2026-07-03 12:36:17",
      "modified": "2026-07-03 12:36:17",
      "commits": 1
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "tters",
  "_universes": [
    "oldschoolcool2"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-31T12:22:57.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
      "fileid": "https://r2.ropensci.org/e1fccd23c79baee8d08b834d74acf5fc1922b5c9ca8280798b9c785517c8063f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/41197953345"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-31T12:23:22.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
      "fileid": "https://r2.ropensci.org/f8e4111963e1d722471f9d81b8d39af20e74d58ddc9b559b18950999d6815822",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/41197953345"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-31T12:23:10.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
      "fileid": "https://r2.ropensci.org/cd91abecf7363501affe8bde2ccca0ef6bb9d907df1fb8e826d9b5f13516e582",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/41197953345"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-31T12:23:18.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
      "fileid": "https://r2.ropensci.org/fa26ec59f721d3ac7d396d0819cba1f9499789010175fb712b56e38fcf1e7b5a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/41197953345"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-31T13:25:54.000Z",
      "arch": "aarch64",
      "commit": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
      "fileid": "https://r2.ropensci.org/390c545d6e2a3cdd4d1876acd4b6c3efc7a410221f1e9d35d88908eaf450a799",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/41197953345"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-31T12:29:41.000Z",
      "arch": "x86_64",
      "commit": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
      "fileid": "https://r2.ropensci.org/ebbcb0f0cec82dc910ad8931859c483ea7562bb39b67bf2f4103fd6dbe40e817",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/41197953345"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-31T13:24:27.000Z",
      "arch": "aarch64",
      "commit": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
      "fileid": "https://r2.ropensci.org/26887d23a45a19388f94d979e1712dd04eadce625e200bd579f2b606da2efa32",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/41197953345"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-31T12:28:51.000Z",
      "arch": "x86_64",
      "commit": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
      "fileid": "https://r2.ropensci.org/e1b312240ea5be816a18f771e342c84c0f6fcc07222abfcd3eb0998a19d1ce67",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/41197953345"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-31T12:26:22.000Z",
      "arch": "aarch64",
      "commit": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
      "fileid": "https://r2.ropensci.org/834e4d03bd78e34fe0af5faa4541cb885e4439a80915ad0ed2efa1bd12994dd7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/41197953345"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-31T12:22:28.000Z",
      "arch": "x86_64",
      "commit": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
      "fileid": "https://r2.ropensci.org/72c3a29ea6b90c01c7c30447eb68689e8fcdac771162f74355d7e003d96cb2b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/41197953345"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-31T12:22:26.000Z",
      "arch": "x86_64",
      "commit": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
      "fileid": "https://r2.ropensci.org/3e03ab93c7e90cdccebd8a513fe78b76de36b87082f831810c67ba9e0e04fc88",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/41197953345"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-31T12:26:25.000Z",
      "arch": "aarch64",
      "commit": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
      "fileid": "https://r2.ropensci.org/a4f0e3eb709073ef45ebc680f7328ddf6502f41d1d26c563130ec9caf4e040a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/41197953345"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-31T12:22:24.000Z",
      "arch": "x86_64",
      "commit": "b99deb88b2ec386cd7f8ce3b10b45422433834c7",
      "fileid": "https://r2.ropensci.org/1c2e6dc6c710eb1bb094f340b0411587d91348bbb4d816d2b17759933a8d5c0d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/41197953345"
    }
  ]
}