{
  "_id": "6a12cd34acfb0bcc41d21899",
  "Package": "contrastable",
  "Type": "Package",
  "Title": "Consistent Contrast Coding for Factors",
  "Version": "1.1.0",
  "Authors@R": "person(\"Thomas\", \"Sostarics\", email = \"tsostarics@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"), comment = c(ORCID = \"0000-0002-1178-7967\"))",
  "Description": "Quickly set and summarize contrasts for factors prior to\nregression analyses. Intended comparisons, baseline conditions,\nand intercepts can be explicitly set and documented without the\nuser needing to directly manipulate matrices. Reviews and\nintroductions for contrast coding are available in Brehm and\nAlday (2022)<doi:10.1016/j.jml.2022.104334> and Schad et al.\n(2020)<doi:10.1016/j.jml.2019.104038>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "Config/testthat/edition": "3",
  "URL": "https://github.com/tsostarics/contrastable,\nhttps://tsostarics.github.io/contrastable/",
  "BugReports": "https://github.com/tsostarics/contrastable/issues",
  "VignetteBuilder": "knitr",
  "Roxygen": "list(markdown = TRUE)",
  "Repository": "https://tsostarics.r-universe.dev",
  "Date/Publication": "2025-11-23 19:38:24 UTC",
  "RemoteUrl": "https://github.com/tsostarics/contrastable",
  "RemoteRef": "HEAD",
  "RemoteSha": "3d110a1bdbe9bf254feef026101d141181ebaa57",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-24 10:01:20 UTC",
    "User": "root"
  },
  "Author": "Thomas Sostarics [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-1178-7967>)",
  "Maintainer": "Thomas Sostarics <tsostarics@gmail.com>",
  "MD5sum": "94ac2237a0ba925791ad8af5e6800222",
  "_user": "tsostarics",
  "_type": "src",
  "_file": "contrastable_1.1.0.tar.gz",
  "_fileid": "c72c1696e919a80ac05ec4d21e5126b58e30bfabe8ef010f15a8c4f336bfcf51",
  "_filesize": 353798,
  "_sha256": "c72c1696e919a80ac05ec4d21e5126b58e30bfabe8ef010f15a8c4f336bfcf51",
  "_created": "2026-05-24T10:01:20.000Z",
  "_published": "2026-05-24T10:04:36.929Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77588858792,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7184238903"
    },
    {
      "job": 77588858787,
      "time": 134,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7184240184"
    },
    {
      "job": 77588858802,
      "time": 135,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7184238220"
    },
    {
      "job": 77588858786,
      "time": 163,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7184240251"
    },
    {
      "job": 77588702262,
      "time": 156,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7184227019"
    },
    {
      "job": 77588858784,
      "time": 100,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7184236979"
    },
    {
      "job": 77588858800,
      "time": 95,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7184236309"
    },
    {
      "job": 77588858796,
      "time": 84,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7184235268"
    },
    {
      "job": 77588858798,
      "time": 80,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7184235059"
    }
  ],
  "_buildurl": "https://github.com/r-universe/tsostarics/actions/runs/26358184860",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/tsostarics/contrastable",
  "_commit": {
    "id": "3d110a1bdbe9bf254feef026101d141181ebaa57",
    "author": "Thomas Sostarics <tsostarics@gmail.com>",
    "committer": "Thomas Sostarics <tsostarics@gmail.com>",
    "message": "update readme\n",
    "time": 1763926704
  },
  "_maintainer": {
    "name": "Thomas Sostarics",
    "email": "tsostarics@gmail.com",
    "login": "tsostarics",
    "description": "",
    "uuid": 18294384,
    "orcid": "0000-0002-1178-7967"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "crayon",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 0.1.2",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "roxygen2",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "hypr",
      "role": "Suggests"
    }
  ],
  "_owner": "tsostarics",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-42",
      "n": 4
    },
    {
      "week": "2025-47",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v1.1.0",
      "date": "2025-11-23"
    }
  ],
  "_topics": [
    "contrasts",
    "modeling",
    "statistics"
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "tsostarics",
      "count": 388,
      "uuid": 18294384
    },
    {
      "user": "josiahparry",
      "count": 1,
      "uuid": 13534508
    }
  ],
  "_userbio": {
    "uuid": 18294384,
    "type": "user",
    "name": "Thomas Sostarics"
  },
  "_downloads": {
    "count": 198,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/contrastable"
  },
  "_devurl": "https://github.com/tsostarics/contrastable",
  "_pkgdown": "https://tsostarics.github.io/contrastable/",
  "_searchresults": 25,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/contrastable.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/tsostarics/contrastable",
  "_realowner": "tsostarics",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.2",
      "date": "2024-10-01"
    },
    {
      "version": "1.1.0",
      "date": "2025-11-23"
    }
  ],
  "_exports": [
    ".is_reserved_operator",
    "as.unordered",
    "backward_difference_code",
    "cumulative_split_code",
    "decompose_contrasts",
    "enlist_contrasts",
    "forward_difference_code",
    "glimpse_contrasts",
    "helmert_code",
    "interpret_intercept",
    "is_centered",
    "is_orthogonal",
    "is.unordered",
    "orth_polynomial_code",
    "polynomial_code",
    "print_contrasts",
    "raw_polynomial_code",
    "reverse_helmert_code",
    "scaled_sum_code",
    "set_contrasts",
    "sum_code",
    "treatment_code",
    "use_contrasts"
  ],
  "_help": [
    {
      "page": "as.unordered",
      "title": "Convert to unordered factor",
      "topics": [
        "as.unordered"
      ]
    },
    {
      "page": "backward_difference_code",
      "title": "Use backward difference coding",
      "topics": [
        "backward_difference_code"
      ]
    },
    {
      "page": "cumulative_split_code",
      "title": "Use cumulative split coding",
      "topics": [
        "cumulative_split_code"
      ]
    },
    {
      "page": "decompose_contrasts",
      "title": "Decompose contrasts into new columns",
      "topics": [
        "decompose_contrasts"
      ]
    },
    {
      "page": "enlist_contrasts",
      "title": "Get a list of contrast matrices",
      "topics": [
        "enlist_contrasts"
      ]
    },
    {
      "page": "forward_difference_code",
      "title": "Use forward difference coding",
      "topics": [
        "forward_difference_code"
      ]
    },
    {
      "page": "glimpse_contrasts",
      "title": "Get quick summary of contrasts in dataframe",
      "topics": [
        "glimpse_contrasts"
      ]
    },
    {
      "page": "helmert_code",
      "title": "Use helmert coding",
      "topics": [
        "helmert_code"
      ]
    },
    {
      "page": "interpret_intercept",
      "title": "Interpret intercept from contrasts",
      "topics": [
        "interpret_intercept"
      ]
    },
    {
      "page": "is_centered",
      "title": "Check for intercept centering",
      "topics": [
        "is_centered"
      ]
    },
    {
      "page": "is_orthogonal",
      "title": "Check for orthogonality",
      "topics": [
        "is_orthogonal"
      ]
    },
    {
      "page": "is.unordered",
      "title": "Check for unordered factor",
      "topics": [
        "is.unordered"
      ]
    },
    {
      "page": "orth_polynomial_code",
      "title": "Use orthogonal polynomial coding",
      "topics": [
        "orth_polynomial_code",
        "polynomial_code"
      ]
    },
    {
      "page": "print_contrasts",
      "title": "Print contrasts",
      "topics": [
        "print_contrasts"
      ]
    },
    {
      "page": "raw_polynomial_code",
      "title": "Use raw polynomial coding",
      "topics": [
        "raw_polynomial_code"
      ]
    },
    {
      "page": "reverse_helmert_code",
      "title": "Use reverse helmert coding",
      "topics": [
        "reverse_helmert_code"
      ]
    },
    {
      "page": "scaled_sum_code",
      "title": "Use scaled sum coding",
      "topics": [
        "scaled_sum_code"
      ]
    },
    {
      "page": "set_contrasts",
      "title": "Set contrasts to factor columns in dataframe",
      "topics": [
        "set_contrasts"
      ]
    },
    {
      "page": "sum_code",
      "title": "Use sum coding",
      "topics": [
        "sum_code"
      ]
    },
    {
      "page": "treatment_code",
      "title": "Use treatment coding",
      "topics": [
        "treatment_code"
      ]
    },
    {
      "page": "use_contrasts",
      "title": "Use contrast specification for given factor",
      "topics": [
        "use_contrasts"
      ]
    },
    {
      "page": "use_contrasts.AsIs",
      "title": "AsIs method for use_contrasts",
      "topics": [
        "use_contrasts.AsIs"
      ]
    },
    {
      "page": "use_contrasts.default",
      "title": "Default method for use_contrasts",
      "topics": [
        "use_contrasts.default"
      ]
    },
    {
      "page": "use_contrasts.function",
      "title": "Function method for use_contrasts",
      "topics": [
        "use_contrasts.function"
      ]
    },
    {
      "page": "use_contrasts.hypr",
      "title": "hypr method for use_contrasts",
      "topics": [
        "use_contrasts.hypr"
      ]
    },
    {
      "page": "use_contrasts.matrix",
      "title": "Matrix method for use_contrasts",
      "topics": [
        "use_contrasts.matrix"
      ]
    },
    {
      "page": "use_contrasts.name",
      "title": "Symbol method for use_contrasts",
      "topics": [
        "use_contrasts.name"
      ]
    }
  ],
  "_readme": "https://github.com/tsostarics/contrastable/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "crayon",
    "glue",
    "lifecycle",
    "magrittr",
    "MASS",
    "purrr",
    "rlang",
    "tidyselect",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "contrastable.Rmd",
      "filename": "contrastable.html",
      "title": "contrastable",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Get started",
        "Setting contrasts to data frame columns",
        "set_contrasts",
        "enlist_contrasts",
        "glimpse_contrasts",
        "decompose_contrasts",
        "Contrast functions"
      ],
      "created": "2024-10-01 20:36:55",
      "modified": "2024-10-01 21:19:08",
      "commits": 2
    },
    {
      "source": "contrasts.Rmd",
      "filename": "contrasts.html",
      "title": "Contrastable Overview",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction to contrasts",
        "Motivation",
        "Usage",
        "enlist_contrasts",
        "Contrast functions",
        "tidyselect functions",
        "Other ways to set contrasts",
        "glimpse_contrasts",
        "Note on polynomial contrasts",
        "decompose_contrasts",
        "Typical patterns",
        "Pattern 1: No glimpsing",
        "Pattern 2: With information about contrasts",
        "Conclusion",
        "Citation examples"
      ],
      "created": "2021-07-02 19:11:59",
      "modified": "2024-09-26 21:25:55",
      "commits": 26
    },
    {
      "source": "warnings.Rmd",
      "filename": "warnings.html",
      "title": "Warnings, Messages, and Errors",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Common Messages",
        "Warnings",
        "hypr integration",
        "glimpse_contrasts safety checks",
        "Errors"
      ],
      "created": "2024-08-08 03:04:19",
      "modified": "2024-10-17 15:07:38",
      "commits": 11
    }
  ],
  "_score": 5.176091259055681,
  "_indexed": true,
  "_nocasepkg": "contrastable",
  "_universes": [
    "tsostarics"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-05-24T10:03:19.000Z",
      "distro": "noble",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "dd3e0777f6b7d3ac332163bf583fcf8b2ae96cb9c3e8c80c977632f2b0fec10f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/26358184860"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-05-24T10:03:28.000Z",
      "distro": "noble",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "1cf08f5ac30913e8c50a96b92694637508c0c5d63242658c0b754efae7e16e39",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/26358184860"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-05-24T10:03:16.000Z",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "118e19e0cfc4f4e6aab35b926815113f07aab2468f0d5ae5d659c99bd10abb3f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/26358184860"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-05-24T10:03:32.000Z",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "f456314dba52606db49839c9411755132612c0c1ee0c5f70b79d126bc2f6668e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/26358184860"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.0",
      "date": "2026-05-24T10:03:19.000Z",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "d9dfbeb667547f2e94b2eb3124d2fdf8630a04efbefcea801d37cb9be9015a0f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/26358184860"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-05-24T10:02:42.000Z",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "e1b0af9f5640f8e52fc07ce5cb052187b52a7385de865195d2c575d6c72211f5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/26358184860"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-05-24T10:02:32.000Z",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "d6a70d792364f9b81c103abc6580e755e5c16f203d4636c724914b5ee808fbbf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/26358184860"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-05-24T10:02:30.000Z",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "6a1d5c63f292ade55ba9c131b8e08f50a5038e92307111f27e10e622e2bc2125",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/26358184860"
    }
  ]
}