{
  "_id": "6a1024c2acfb0bcc41c8df49",
  "Package": "idealstan",
  "Type": "Package",
  "Title": "Robust Measurement with 'Stan'",
  "Version": "1.0",
  "Date": "2026-04-21",
  "Authors@R": "c(person(\"Robert\",\"Kubinec\", role = c(\"aut\",\"cre\"),\nemail = \"bobkubinec@gmail.com\"))",
  "BugReports": "https://github.com/saudiwin/idealstan/issues",
  "Description": "Offers item-response theory (IRT) ideal-point measurement\nmodeling for diverse distributions, missing data, and over-time\nvariation. Full and approximate Bayesian sampling with 'Stan'\n(<https://mc-stan.org/>).",
  "License": "MIT + file LICENSE",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "NeedsCompilation": "no",
  "SystemRequirements": "GNU make",
  "Additional_repositories": "https://stan-dev.r-universe.dev",
  "VignetteBuilder": "quarto",
  "RoxygenNote": "7.3.2",
  "Roxygen": "list(markdown = TRUE)",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev zlib1g-dev",
  "Repository": "https://saudiwin.r-universe.dev",
  "Date/Publication": "2026-04-30 19:03:34 UTC",
  "RemoteUrl": "https://github.com/saudiwin/idealstan",
  "RemoteRef": "HEAD",
  "RemoteSha": "a20deaa86cd489002b5a521f8207254b31aa4a43",
  "Packaged": {
    "Date": "2026-05-13 10:23:20 UTC",
    "User": "root"
  },
  "Author": "Robert Kubinec [aut, cre]",
  "Maintainer": "Robert Kubinec <bobkubinec@gmail.com>",
  "MD5sum": "2a8ff7a05096ca468227e0d0b747259d",
  "_user": "saudiwin",
  "_type": "src",
  "_file": "idealstan_1.0.tar.gz",
  "_fileid": "8df6412bc22eef21f06d104dc0fa6aeaf645769bec67bcbc231afe061630e31d",
  "_filesize": 501335,
  "_sha256": "8df6412bc22eef21f06d104dc0fa6aeaf645769bec67bcbc231afe061630e31d",
  "_created": "2026-05-13T10:23:20.000Z",
  "_published": "2026-05-22T09:41:22.807Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77354188480,
      "time": 347,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6967665546"
    },
    {
      "job": 77354188725,
      "time": 416,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6967687366"
    },
    {
      "job": 77354188430,
      "time": 242,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6967618435"
    },
    {
      "job": 77354188511,
      "time": 244,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6967622155"
    },
    {
      "job": 77354188304,
      "time": 394,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6967553395"
    },
    {
      "job": 77354188069,
      "time": 322,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157499815"
    },
    {
      "job": 77354188307,
      "time": 181,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6967613125"
    },
    {
      "job": 77354188799,
      "time": 169,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6967609123"
    },
    {
      "job": 77354188334,
      "time": 172,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6967610163"
    }
  ],
  "_buildurl": "https://github.com/r-universe/saudiwin/actions/runs/25792868874",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/saudiwin/idealstan",
  "_commit": {
    "id": "a20deaa86cd489002b5a521f8207254b31aa4a43",
    "author": "Robert Kubinec <bobkubinec@gmail.com>",
    "committer": "Robert Kubinec <bobkubinec@gmail.com>",
    "message": "doc bugs\n",
    "time": 1777575814
  },
  "_maintainer": {
    "name": "Robert Kubinec",
    "email": "bobkubinec@gmail.com",
    "login": "saudiwin",
    "bluesky": "@rmkubinec.bsky.social",
    "uuid": 10967737
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "methods",
      "role": "Depends"
    },
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "svDialogs",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "bayesplot",
      "role": "Imports"
    },
    {
      "package": "posterior",
      "role": "Imports"
    },
    {
      "package": "gghighlight",
      "role": "Imports"
    },
    {
      "package": "ggrepel",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "tidybayes",
      "role": "Imports"
    },
    {
      "package": "lazyeval",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "ggthemes",
      "role": "Imports"
    },
    {
      "package": "forcats",
      "role": "Imports"
    },
    {
      "package": "ordbetareg",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "shiny",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "cmdstanr",
      "role": "Suggests"
    },
    {
      "package": "quarto",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "loo",
      "role": "Suggests"
    },
    {
      "package": "lubridate",
      "role": "Suggests"
    },
    {
      "package": "rstan",
      "role": "Suggests"
    },
    {
      "package": "shinystan",
      "role": "Suggests"
    },
    {
      "package": "pscl",
      "role": "Suggests"
    },
    {
      "package": "tinytable",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "saudiwin",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-23",
      "n": 1
    },
    {
      "week": "2025-24",
      "n": 3
    },
    {
      "week": "2025-25",
      "n": 1
    },
    {
      "week": "2025-27",
      "n": 2
    },
    {
      "week": "2025-32",
      "n": 1
    },
    {
      "week": "2025-36",
      "n": 2
    },
    {
      "week": "2026-04",
      "n": 3
    },
    {
      "week": "2026-05",
      "n": 9
    },
    {
      "week": "2026-06",
      "n": 4
    },
    {
      "week": "2026-07",
      "n": 4
    },
    {
      "week": "2026-17",
      "n": 6
    },
    {
      "week": "2026-18",
      "n": 5
    }
  ],
  "_tags": [],
  "_topics": [
    "bayesian",
    "irt",
    "stan"
  ],
  "_stars": 58,
  "_contributors": [
    {
      "user": "saudiwin",
      "count": 512,
      "uuid": 10967737
    },
    {
      "user": "michalovadek",
      "count": 11,
      "uuid": 46047818
    },
    {
      "user": "bgoodri",
      "count": 2,
      "uuid": 3386282
    },
    {
      "user": "samjfuller",
      "count": 2,
      "uuid": 79112100
    }
  ],
  "_userbio": {
    "uuid": 10967737,
    "type": "user",
    "name": "Robert Kubinec",
    "description": "Assistant Professor of Political Science, University of South Carolina"
  },
  "_downloads": {
    "count": 10,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/idealstan"
  },
  "_devurl": "https://github.com/saudiwin/idealstan",
  "_searchresults": 36,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/idealstan.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/saudiwin/idealstan",
  "_realowner": "saudiwin",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.7",
      "date": "2018-02-09"
    },
    {
      "version": "0.5.0",
      "date": "2018-10-31"
    },
    {
      "version": "0.5.1",
      "date": "2018-12-06"
    },
    {
      "version": "0.7.0",
      "date": "2019-02-19"
    },
    {
      "version": "0.7.1",
      "date": "2019-02-19"
    },
    {
      "version": "0.7.2",
      "date": "2019-07-10"
    },
    {
      "version": "1.0",
      "date": "2026-05-12"
    }
  ],
  "_exports": [
    "derive_chain",
    "id_estimate",
    "id_extract",
    "id_make",
    "id_me",
    "id_plot_all_hist",
    "id_plot_compare",
    "id_plot_cov",
    "id_plot_gbeta_prior",
    "id_plot_items",
    "id_plot_legis",
    "id_plot_legis_dyn",
    "id_plot_legis_var",
    "id_plot_persons",
    "id_plot_persons_dyn",
    "id_plot_ppc",
    "id_plot_rhats",
    "id_plot_sims",
    "id_post_pred",
    "id_show_trues",
    "id_sim_coverage",
    "id_sim_gen",
    "id_sim_resid",
    "id_sim_rmse",
    "launch_shinystan",
    "stan_trace",
    "summary"
  ],
  "_datasets": [
    {
      "name": "delaware",
      "title": "Rollcall vote data for Delaware State Legislature",
      "object": "delaware",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "outcome",
        "item_id",
        "person_id",
        "group_id",
        "time_id"
      ],
      "rows": 186183,
      "table": true,
      "tojson": true
    },
    {
      "name": "senate114",
      "title": "Rollcall vote data for 114th Senate",
      "object": "senate114",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "bioname",
        "born",
        "party_code",
        "rollnumber",
        "date",
        "cast_code",
        "congress",
        "chamber",
        "nominate_log_likelihood",
        "icpsr",
        "state_icpsr",
        "district_code",
        "state_abbrev",
        "occupancy",
        "last_means",
        "bioguide_id",
        "died",
        "nominate_dim1",
        "nominate_dim2",
        "nominate_geo_mean_probability",
        "nominate_number_of_votes",
        "nominate_number_of_errors",
        "conditional",
        "nokken_poole_dim1",
        "nokken_poole_dim2",
        "prob",
        "session",
        "clerk_rollnumber",
        "yea_count",
        "nay_count",
        "nominate_mid_1",
        "nominate_mid_2",
        "nominate_spread_1",
        "nominate_spread_2",
        "bill_number",
        "vote_result",
        "vote_desc",
        "vote_question",
        "dtl_desc"
      ],
      "rows": 24000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "delaware",
      "title": "Rollcall vote data for Delaware State Legislature",
      "topics": [
        "delaware"
      ]
    },
    {
      "page": "derive_chain",
      "title": "Helper Function for 'loo' calculation",
      "topics": [
        "derive_chain"
      ]
    },
    {
      "page": "id_estimate",
      "title": "Estimate an 'idealstan' model",
      "topics": [
        "id_estimate"
      ]
    },
    {
      "page": "id_extract",
      "title": "Generic Method for Extracting Posterior Samples",
      "topics": [
        "id_extract"
      ]
    },
    {
      "page": "id_extract-idealstan-method",
      "title": "Extract 'stan' joint posterior distribution from 'idealstan' object",
      "topics": [
        "id_extract,idealstan-method"
      ]
    },
    {
      "page": "id_make",
      "title": "Create data to run IRT model",
      "topics": [
        "id_make"
      ]
    },
    {
      "page": "id_me",
      "title": "Calculate ideal point marginal effects",
      "topics": [
        "id_me"
      ]
    },
    {
      "page": "id_me-idealstan-method",
      "title": "Calculate ideal point marginal effects",
      "topics": [
        "id_me,idealstan-method"
      ]
    },
    {
      "page": "id_plot_all_hist",
      "title": "Density plots of Posterior Parameters",
      "topics": [
        "id_plot_all_hist"
      ]
    },
    {
      "page": "id_plot_compare",
      "title": "Function to compare two fitted idealstan models by plotting ideal points. Assumes that underlying data is the same for both models.",
      "topics": [
        "id_plot_compare"
      ]
    },
    {
      "page": "id_plot_cov",
      "title": "Marginal Effects Plot for Hierarchical Covariates",
      "topics": [
        "id_plot_cov"
      ]
    },
    {
      "page": "id_plot_gbeta_prior",
      "title": "Launch the Generalized Beta Distribution Explorer Shiny App",
      "topics": [
        "id_plot_gbeta_prior"
      ]
    },
    {
      "page": "id_plot_items",
      "title": "Plot Item Discrimination or Difficulty Parameters",
      "topics": [
        "id_plot_items"
      ]
    },
    {
      "page": "id_plot_legis_var",
      "title": "Plot Legislator/Person Over-time Variances",
      "topics": [
        "id_plot_legis_var"
      ]
    },
    {
      "page": "id_plot_persons",
      "title": "Plot Legislator/Person and Bill/Item Ideal Points",
      "topics": [
        "id_plot_persons"
      ]
    },
    {
      "page": "id_plot_persons_dyn",
      "title": "Function to plot dynamic ideal point models",
      "topics": [
        "id_plot_persons_dyn"
      ]
    },
    {
      "page": "id_plot_ppc",
      "title": "Plot Posterior Predictive Distribution for 'idealstan' Objects",
      "topics": [
        "id_plot_ppc"
      ]
    },
    {
      "page": "id_plot_ppc-idealstan-method",
      "title": "Plot Posterior Predictive Distribution for 'idealstan' Objects",
      "topics": [
        "id_plot_ppc,idealstan-method"
      ]
    },
    {
      "page": "id_plot_rhats",
      "title": "Plotting Function to Display Rhat Distribution",
      "topics": [
        "id_plot_rhats"
      ]
    },
    {
      "page": "id_plot_sims",
      "title": "This function plots the results from a simulation generated by 'id_sim_gen()'.",
      "topics": [
        "id_plot_sims",
        "id_show_trues"
      ]
    },
    {
      "page": "id_post_pred",
      "title": "Generic Method for Obtaining Posterior Predictive Distribution from Stan Objects",
      "topics": [
        "id_post_pred"
      ]
    },
    {
      "page": "id_post_pred-idealstan-method",
      "title": "Posterior Prediction for 'idealstan' objects",
      "topics": [
        "id_post_pred,idealstan-method"
      ]
    },
    {
      "page": "id_sim_coverage",
      "title": "Function that computes how often the true value of the parameter is included within the 95/5 high posterior density interval",
      "topics": [
        "id_sim_coverage"
      ]
    },
    {
      "page": "id_sim_gen",
      "title": "Simulate IRT ideal point data",
      "topics": [
        "id_sim_gen"
      ]
    },
    {
      "page": "id_sim_resid",
      "title": "Residual function for checking estimated samples compared to true simulation scores Returns a data frame with residuals plus quantiles.",
      "topics": [
        "id_sim_resid"
      ]
    },
    {
      "page": "id_sim_rmse",
      "title": "RMSE function for calculating individual RMSE values compared to true simulation scores Returns a data frame with RMSE plus quantiles.",
      "topics": [
        "id_sim_rmse"
      ]
    },
    {
      "page": "idealdata-class",
      "title": "Data and Identification for 'id_estimate'",
      "topics": [
        "idealdata-class"
      ]
    },
    {
      "page": "idealstan-class",
      "title": "Results of 'id_estimate' function",
      "topics": [
        "idealstan-class"
      ]
    },
    {
      "page": "launch_shinystan",
      "title": "Generic Method to Use 'shinystan' with 'idealstan'",
      "topics": [
        "launch_shinystan"
      ]
    },
    {
      "page": "launch_shinystan-idealstan-method",
      "title": "Function to Launch Shinystan with an 'idealstan' Object",
      "topics": [
        "launch_shinystan,idealstan-method"
      ]
    },
    {
      "page": "release_questions",
      "title": "Function that provides additional check questions for package release",
      "topics": [
        "release_questions"
      ]
    },
    {
      "page": "senate114",
      "title": "Rollcall vote data for 114th Senate",
      "topics": [
        "senate114"
      ]
    },
    {
      "page": "stan_trace",
      "title": "Plot the MCMC posterior draws by chain",
      "topics": [
        "stan_trace"
      ]
    },
    {
      "page": "stan_trace-idealstan-method",
      "title": "Plot the MCMC posterior draws by chain",
      "topics": [
        "stan_trace,idealstan-method"
      ]
    },
    {
      "page": "summary-idealstan-method",
      "title": "Posterior Summaries for fitted 'idealstan' object",
      "topics": [
        "summary,idealstan-method"
      ]
    }
  ],
  "_readme": "https://github.com/saudiwin/idealstan/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "arrayhelpers",
    "backports",
    "base64enc",
    "bayesplot",
    "BH",
    "bridgesampling",
    "brms",
    "Brobdingnag",
    "bslib",
    "cachem",
    "callr",
    "checkmate",
    "cli",
    "coda",
    "codetools",
    "commonmark",
    "cpp11",
    "desc",
    "digest",
    "distributional",
    "dplyr",
    "farver",
    "fastmap",
    "fontawesome",
    "forcats",
    "fs",
    "future",
    "future.apply",
    "generics",
    "ggdist",
    "gghighlight",
    "ggplot2",
    "ggrepel",
    "ggridges",
    "ggthemes",
    "globals",
    "glue",
    "gridExtra",
    "gtable",
    "htmltools",
    "httpuv",
    "inline",
    "insight",
    "isoband",
    "jquerylib",
    "jsonlite",
    "labeling",
    "later",
    "lattice",
    "lazyeval",
    "lifecycle",
    "listenv",
    "loo",
    "magrittr",
    "Matrix",
    "matrixStats",
    "memoise",
    "mgcv",
    "mime",
    "mvtnorm",
    "nleqslv",
    "nlme",
    "numDeriv",
    "ordbetareg",
    "otel",
    "parallelly",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "plyr",
    "posterior",
    "processx",
    "promises",
    "ps",
    "purrr",
    "quadprog",
    "QuickJSR",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "reshape2",
    "rlang",
    "rstan",
    "rstantools",
    "rstudioapi",
    "S7",
    "sass",
    "scales",
    "shiny",
    "sourcetools",
    "StanHeaders",
    "stringi",
    "stringr",
    "svDialogs",
    "svGUI",
    "svUnit",
    "tensorA",
    "tibble",
    "tidybayes",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xtable"
  ],
  "_score": 6.575002999433531,
  "_indexed": true,
  "_nocasepkg": "idealstan",
  "_universes": [
    "saudiwin"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-05-13T10:28:36.000Z",
      "distro": "noble",
      "commit": "a20deaa86cd489002b5a521f8207254b31aa4a43",
      "fileid": "f262d6d1d686bb469a1dbf408fdd2d20219814d8fb82613c7219e59e7671dc3d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/saudiwin/actions/runs/25792868874"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-05-13T10:29:33.000Z",
      "distro": "noble",
      "commit": "a20deaa86cd489002b5a521f8207254b31aa4a43",
      "fileid": "53d376cb86e6db21388177038b10000a0ce7dfc8313e7961b2fb722e548e4668",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/saudiwin/actions/runs/25792868874"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0",
      "date": "2026-05-13T10:26:10.000Z",
      "commit": "a20deaa86cd489002b5a521f8207254b31aa4a43",
      "fileid": "a1602ee11ee0c62e17878ba27b7543fff71304971c6c00ca627da5ba5ce401f1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/saudiwin/actions/runs/25792868874"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0",
      "date": "2026-05-13T10:26:16.000Z",
      "commit": "a20deaa86cd489002b5a521f8207254b31aa4a43",
      "fileid": "f4bde61ed07fffd68d16efee71194aecb979ab28d674cf545d5110e6c454871f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/saudiwin/actions/runs/25792868874"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0",
      "date": "2026-05-13T10:25:29.000Z",
      "commit": "a20deaa86cd489002b5a521f8207254b31aa4a43",
      "fileid": "9522af7a5743c6a840fbd0c1b3619d50b0e68b0dfbb1ef9769fb019c89c1d2f6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/saudiwin/actions/runs/25792868874"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0",
      "date": "2026-05-13T10:25:35.000Z",
      "commit": "a20deaa86cd489002b5a521f8207254b31aa4a43",
      "fileid": "8c1aeae2a53f9b7a1d53c92b9f41bd8aaea75bbe8561f0380ffcb128005c7060",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/saudiwin/actions/runs/25792868874"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0",
      "date": "2026-05-13T10:25:25.000Z",
      "commit": "a20deaa86cd489002b5a521f8207254b31aa4a43",
      "fileid": "c7a80179260ac0117793939d351990309573ac3063ac9a864f2dea66e01e9b84",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/saudiwin/actions/runs/25792868874"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0",
      "date": "2026-05-22T09:41:05.000Z",
      "commit": "a20deaa86cd489002b5a521f8207254b31aa4a43",
      "fileid": "a6a15c035d61faaee97126452b8faca1a520ef87e483b15fb155c8e414d74a51",
      "status": "success",
      "buildurl": "https://github.com/r-universe/saudiwin/actions/runs/25792868874"
    }
  ]
}