{
  "_id": "6ab0f3603d719c1f84084f4b",
  "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-09-21 08:58:46 UTC",
    "User": "root"
  },
  "Author": "Thomas Sostarics [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-1178-7967>)",
  "Maintainer": "Thomas Sostarics <tsostarics@gmail.com>",
  "_user": "tsostarics",
  "_type": "src",
  "_file": "contrastable_1.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/f508e4644d0158fd0a92b407c86ad19fd24354f5c3308620c7ae363ff1a4666b",
  "_filesize": 355281,
  "_sha256": "f508e4644d0158fd0a92b407c86ad19fd24354f5c3308620c7ae363ff1a4666b",
  "_expires": "2026-12-30T09:05:35.000Z",
  "_created": "2026-09-21T08:58:46.000Z",
  "_published": "2026-09-21T09:05:36.856Z",
  "_jobs": [
    {
      "job": 106272842826,
      "time": 316,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10630551541"
    },
    {
      "job": 106272842963,
      "time": 333,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10630551589"
    },
    {
      "job": 106272842951,
      "time": 356,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10629718801"
    },
    {
      "job": 106272843411,
      "time": 326,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10630048492"
    },
    {
      "job": 106271775233,
      "time": 227,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10629842932"
    },
    {
      "job": 106272842939,
      "time": 302,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10629563962"
    },
    {
      "job": 106272842926,
      "time": 77,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10629653456"
    },
    {
      "job": 106272842908,
      "time": 74,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10629598417"
    },
    {
      "job": 106272842982,
      "time": 78,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10630575838"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/tsostarics/actions/runs/35580387829",
  "_status": "success",
  "_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"
  },
  "_distro": "resolute",
  "_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",
    "followers": 4
  },
  "_downloads": {
    "count": 242,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/contrastable"
  },
  "_devurl": "https://github.com/tsostarics/contrastable",
  "_pkgdown": "https://tsostarics.github.io/contrastable/",
  "_searchresults": 29,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/contrastable.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_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.2405492482825995,
  "_indexed": true,
  "_nocasepkg": "contrastable",
  "_universes": [
    "tsostarics"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-09-21T09:04:07.000Z",
      "distro": "resolute",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "https://r2.ropensci.org/4f1b109598a41de1dbb0e2634fcc37bf5438ba368da2efd19153a612510b1df6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/35580387829"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-09-21T09:04:21.000Z",
      "distro": "resolute",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "https://r2.ropensci.org/fe94d54596c4f79a8833e7896d427f643c10b80aa2b1b3dec143a3bc6aeb64c0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/35580387829"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-09-21T09:03:58.000Z",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "https://r2.ropensci.org/9d083574f47f20fee4931e37681f76a564996a987e5a7c599295937294e7708a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/35580387829"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-09-21T09:04:02.000Z",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "https://r2.ropensci.org/c3d274db74d4128d178af2c49be36069647237d4176323ff36e8a3b1773465a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/35580387829"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.0",
      "date": "2026-09-21T09:04:10.000Z",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "https://r2.ropensci.org/cde10a0e5cadf8f72cd5c124e3131454b77a28a1022f51706c18c6788bf34091",
      "status": "success",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/35580387829"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-09-21T08:59:54.000Z",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "https://r2.ropensci.org/2b17cd933a8afad48207b82afb2bf664484223d486c9c04ae5ca9ade26171b84",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/35580387829"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-09-21T08:59:54.000Z",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "https://r2.ropensci.org/ff010a3b105403f11b94f7e718e1a28ddd7077c3697712bd091951ee16150502",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/35580387829"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-09-21T09:00:13.000Z",
      "commit": "3d110a1bdbe9bf254feef026101d141181ebaa57",
      "fileid": "https://r2.ropensci.org/302d86c165d8b3dc004e09c2bbb30dd606209c4b449b14a7240321673b294edc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tsostarics/actions/runs/35580387829"
    }
  ]
}