{
  "_id": "6ad6812d4b18b90089998605",
  "Package": "RStanTVA",
  "Type": "Package",
  "Title": "TVA Models in 'Stan' using 'R' and 'StanTVA'",
  "Version": "0.5.0",
  "Authors@R": "c(\nperson(given = \"Maximilian M.\", family = \"Rabe\", email = \"maximilian.rabe@uni-potsdam.de\", role = c(\"aut\",\"cre\"), comment = c(ORCID = \"0000-0002-2556-5644\")),\nperson(given = \"S\\u00f8ren\", family = \"Kyllingsb\\u00e6k\", email = \"soeren.kyllingsbaek@psy.ku.dk\", role = c(\"aut\"), comment = c(ORCID = \"0000-0002-4100-437X\")))",
  "Description": "'Stan' implementation of the Theory of Visual Attention\n(TVA; Bundesen, 1990; <doi:10.1037/0033-295X.97.4.523>) and\nnumerous convenience functions for generating, compiling,\nfitting, and analyzing TVA models.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "BugReports": "https://github.com/mmrabe/RStanTVA/issues",
  "URL": "https://github.com/mmrabe/RStanTVA",
  "Date": "2025-12-16",
  "Additional_repositories": "https://stan-dev.r-universe.dev",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Config/roxygen2/version": "8.1.0",
  "Config/pak/sysreqs": "cmake make libicu-dev libx11-dev",
  "Repository": "https://mmrabe.r-universe.dev",
  "Date/Publication": "2026-10-19 15:26:35 UTC",
  "RemoteUrl": "https://github.com/mmrabe/rstantva",
  "RemoteRef": "HEAD",
  "RemoteSha": "89a16c471a5982f9a9566cb2c2bd40248e8a85b8",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-19 20:25:06 UTC",
    "User": "root"
  },
  "Author": "Maximilian M. Rabe [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-2556-5644>),\nSøren Kyllingsbæk [aut] (ORCID:\n<https://orcid.org/0000-0002-4100-437X>)",
  "Maintainer": "Maximilian M. Rabe <maximilian.rabe@uni-potsdam.de>",
  "_user": "mmrabe",
  "_type": "src",
  "_file": "RStanTVA_0.5.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/c96b393ca88f6fe646fc4be4e2c5c9316c5e19595f3f870b322aeec9602382a9",
  "_filesize": 903723,
  "_sha256": "c96b393ca88f6fe646fc4be4e2c5c9316c5e19595f3f870b322aeec9602382a9",
  "_expires": "2027-01-27T20:44:27.000Z",
  "_created": "2026-10-19T20:25:06.000Z",
  "_published": "2026-10-19T20:44:29.121Z",
  "_upstream": "https://github.com/mmrabe/rstantva",
  "_status": "success",
  "_maintainer": {
    "name": "Maximilian M. Rabe",
    "email": "maximilian.rabe@uni-potsdam.de",
    "login": "mmrabe",
    "twitter": "@MaxMRabe",
    "description": "Postdoc at the University of Copenhagen and at the University of Potsdam.",
    "uuid": 13450250,
    "orcid": "0000-0002-2556-5644"
  },
  "_jobs": [
    {
      "job": 118288559572,
      "time": 384,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "12219742127"
    },
    {
      "job": 118288559577,
      "time": 288,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "12218633368"
    },
    {
      "job": 118288559181,
      "time": 137,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "12220410863"
    },
    {
      "job": 118288559487,
      "time": 175,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "12220700752"
    },
    {
      "job": 118283608503,
      "time": 619,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12218273368"
    },
    {
      "job": 118288559276,
      "time": 221,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12219487173"
    },
    {
      "job": 118288559343,
      "time": 176,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "12219955651"
    },
    {
      "job": 118288559325,
      "time": 180,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "12218108838"
    },
    {
      "job": 118288559347,
      "time": 151,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "12219566904"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mmrabe/actions/runs/39317726882",
  "_commit": {
    "id": "89a16c471a5982f9a9566cb2c2bd40248e8a85b8",
    "author": "Maximilian M. Rabe <maximilian.rabe@uni-potsdam.de>",
    "committer": "Maximilian M. Rabe <maximilian.rabe@uni-potsdam.de>",
    "message": "Update StanTVA\n",
    "time": 1792423595
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "rstan",
      "role": "Depends"
    },
    {
      "package": "R",
      "version": ">= 3.6",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "lme4",
      "role": "Imports"
    },
    {
      "package": "brms",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "reformulas",
      "role": "Imports"
    },
    {
      "package": "cmdstanr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    }
  ],
  "_owner": "mmrabe",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-51",
      "n": 5
    },
    {
      "week": "2026-17",
      "n": 6
    },
    {
      "week": "2026-19",
      "n": 3
    },
    {
      "week": "2026-22",
      "n": 1
    },
    {
      "week": "2026-23",
      "n": 3
    },
    {
      "week": "2026-24",
      "n": 4
    },
    {
      "week": "2026-26",
      "n": 1
    },
    {
      "week": "2026-31",
      "n": 3
    },
    {
      "week": "2026-40",
      "n": 7
    },
    {
      "week": "2026-41",
      "n": 10
    },
    {
      "week": "2026-42",
      "n": 8
    },
    {
      "week": "2026-43",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.3.2",
      "date": "2025-12-16"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "mmrabe",
      "count": 225,
      "uuid": 13450250
    }
  ],
  "_userbio": {
    "uuid": 13450250,
    "type": "user",
    "name": "Maximilian M. Rabe",
    "followers": 23,
    "description": "Postdoc at the University of Copenhagen and at the University of Potsdam."
  },
  "_downloads": {
    "count": 291,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/RStanTVA"
  },
  "_devurl": "https://github.com/mmrabe/rstantva",
  "_searchresults": 3,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "extra/RStanTVA.html"
  ],
  "_homeurl": "https://github.com/mmrabe/rstantva",
  "_realowner": "mmrabe",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.0",
      "date": "2025-04-03"
    },
    {
      "version": "0.2.1",
      "date": "2025-04-16"
    },
    {
      "version": "0.2.6",
      "date": "2025-04-23"
    },
    {
      "version": "0.3.0",
      "date": "2025-05-08"
    },
    {
      "version": "0.3.2",
      "date": "2025-12-16"
    }
  ],
  "_exports": [
    "alias",
    "coef",
    "extract",
    "fitted",
    "fixef",
    "flatten_matrix_col",
    "logLik",
    "model_code",
    "optimizing",
    "predict",
    "print",
    "prior",
    "ranef",
    "read_stantva_fit",
    "read_tva_data",
    "sampling",
    "show",
    "stancsv2stantvafit",
    "stantva_code",
    "stantva_model",
    "stantva_path",
    "tva_integrate",
    "tva_item_prob",
    "tva_plot_predicted_score",
    "tva_plot_score_densities",
    "tva_predict_score",
    "tva_predict_score_by_list",
    "tva_processing_rates",
    "tva_report",
    "tva_response_prob",
    "tva_score_prob",
    "tva_simulate_response",
    "tva_simulate_score",
    "write_stantva_fit",
    "write_stantva_model",
    "write_tva_data"
  ],
  "_datasets": [
    {
      "name": "tva_recovery",
      "title": "True parameters for TVA recovery study",
      "object": "tva_recovery",
      "class": [
        "grouped_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "subject",
        "trial",
        "T",
        "condition",
        "nD",
        "S",
        "D",
        "R",
        "true_values"
      ],
      "rows": 11700,
      "table": false,
      "tojson": true
    },
    {
      "name": "tva_recovery_true_params",
      "title": "True parameters for TVA recovery study",
      "object": "tva_recovery_true_params",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "alias-stantvafit-method",
      "title": "Retrieve parameters aliases",
      "topics": [
        "alias,stantvafit-method"
      ]
    },
    {
      "page": "coef-stantvafit-method",
      "title": "Model coefficients",
      "topics": [
        "coef,stantvafit-method"
      ]
    },
    {
      "page": "extract-stantvafit-method",
      "title": "Extract samples from a fitted RStanTVA model",
      "topics": [
        "extract,stantvafit-method"
      ]
    },
    {
      "page": "fitted-stantvafit-method",
      "title": "Retrieve fitted parameter values",
      "topics": [
        "fitted,stantvafit-method"
      ]
    },
    {
      "page": "fixef-stantvafit-method",
      "title": "Fixed effects",
      "topics": [
        "fixef,stantvafit-method"
      ]
    },
    {
      "page": "flatten_matrix_col",
      "title": "Flatten matrix columns",
      "topics": [
        "flatten_matrix_col"
      ]
    },
    {
      "page": "logLik-stantvafit-method",
      "title": "Log-likelihood",
      "topics": [
        "logLik,stantvafit-method"
      ]
    },
    {
      "page": "model_code",
      "title": "Extract Stan code",
      "topics": [
        "model_code",
        "model_code,stanfit-method",
        "model_code,stanmodel-method"
      ]
    },
    {
      "page": "names-stantvafit-method",
      "title": "Retrieve model parameter names",
      "topics": [
        "names,stantvafit-method"
      ]
    },
    {
      "page": "optimizing",
      "title": "Maximum-likelihood estimation",
      "topics": [
        "optimizing",
        "optimizing,stantvamodel-method"
      ]
    },
    {
      "page": "predict-stantvafit-method",
      "title": "Predict parameter values",
      "topics": [
        "predict,stantvafit-method"
      ]
    },
    {
      "page": "ranef-stantvafit-method",
      "title": "Random effects",
      "topics": [
        "ranef,stantvafit-method"
      ]
    },
    {
      "page": "read_stantva_fit",
      "title": "Read StanTVA fit",
      "topics": [
        "read_stantva_fit"
      ]
    },
    {
      "page": "read_tva_data",
      "title": "Read TVA data",
      "topics": [
        "read_tva_data"
      ]
    },
    {
      "page": "sampling",
      "title": "Draw posterior samples from an RStanTVA model",
      "topics": [
        "sampling",
        "sampling,stantvamodel-method"
      ]
    },
    {
      "page": "show-stantvacode-method",
      "title": "Show StanTVA code",
      "topics": [
        "show,stantvacode-method"
      ]
    },
    {
      "page": "print-stantvafit-method",
      "title": "Print StanTVA fit",
      "topics": [
        "print,stantvafit-method",
        "show,stantvafit-method"
      ]
    },
    {
      "page": "show-stantvamodel-method",
      "title": "Show StanTVA model",
      "topics": [
        "show,stantvamodel-method"
      ]
    },
    {
      "page": "stancsv2stantvafit",
      "title": "Read StanTVA fit from CSV",
      "topics": [
        "stancsv2stantvafit"
      ]
    },
    {
      "page": "stantva_code",
      "title": "Generate StanTVA code",
      "topics": [
        "stantva_code"
      ]
    },
    {
      "page": "stantva_model",
      "title": "StanTVA model",
      "topics": [
        "stantva_model"
      ]
    },
    {
      "page": "stantva_path",
      "title": "StanTVA path",
      "topics": [
        "stantva_path"
      ]
    },
    {
      "page": "stantvacode-class",
      "title": "StanTVA code class",
      "topics": [
        "stantvacode-class"
      ]
    },
    {
      "page": "stantvafit-class",
      "title": "StanTVA fit class",
      "topics": [
        "stantvafit-class"
      ]
    },
    {
      "page": "stantvamodel-class",
      "title": "StanTVA model class",
      "topics": [
        "stantvamodel-class"
      ]
    },
    {
      "page": "summary-stantvafit-method",
      "title": "Summary method for RStanTVA fits",
      "topics": [
        "summary,stantvafit-method"
      ]
    },
    {
      "page": "tva_integrate",
      "title": "Integrate TVA function over configurations",
      "topics": [
        "tva_integrate"
      ]
    },
    {
      "page": "tva_item_prob",
      "title": "Compute item-level probabilities",
      "topics": [
        "tva_item_prob"
      ]
    },
    {
      "page": "tva_plot_predicted_score",
      "title": "Plot expected scores",
      "topics": [
        "tva_plot_predicted_score"
      ]
    },
    {
      "page": "tva_plot_score_densities",
      "title": "Plot score densities",
      "topics": [
        "tva_plot_score_densities"
      ]
    },
    {
      "page": "tva_predict_score",
      "title": "Predict expected score",
      "topics": [
        "tva_predict_score"
      ]
    },
    {
      "page": "tva_predict_score_by_list",
      "title": "Predict expected score",
      "topics": [
        "tva_predict_score_by_list"
      ]
    },
    {
      "page": "tva_processing_rates",
      "title": "Compute TVA processing rates",
      "topics": [
        "tva_processing_rates"
      ]
    },
    {
      "page": "tva_recovery",
      "title": "True parameters for TVA recovery study",
      "topics": [
        "tva_recovery"
      ]
    },
    {
      "page": "tva_recovery_true_params",
      "title": "True parameters for TVA recovery study",
      "topics": [
        "tva_recovery_true_params"
      ]
    },
    {
      "page": "tva_report",
      "title": "Generate typical descriptive statistics for TVA reports",
      "topics": [
        "tva_report"
      ]
    },
    {
      "page": "tva_response_prob",
      "title": "Compute response probability",
      "topics": [
        "tva_response_prob"
      ]
    },
    {
      "page": "tva_score_prob",
      "title": "Compute score probabilities",
      "topics": [
        "tva_score_prob"
      ]
    },
    {
      "page": "tva_simulate_response",
      "title": "Simulate TVA response",
      "topics": [
        "tva_simulate_response"
      ]
    },
    {
      "page": "tva_simulate_score",
      "title": "Simulate TVA score",
      "topics": [
        "tva_simulate_score"
      ]
    },
    {
      "page": "write_stantva_fit",
      "title": "Write StanTVA fit",
      "topics": [
        "write_stantva_fit"
      ]
    },
    {
      "page": "write_stantva_model",
      "title": "Write StanTVA model",
      "topics": [
        "write_stantva_model"
      ]
    },
    {
      "page": "write_tva_data",
      "title": "Write TVA data",
      "topics": [
        "write_tva_data"
      ]
    }
  ],
  "_readme": "https://github.com/mmrabe/rstantva/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "bayesplot",
    "BH",
    "bit",
    "bit64",
    "boot",
    "bridgesampling",
    "brms",
    "Brobdingnag",
    "callr",
    "checkmate",
    "cli",
    "clipr",
    "coda",
    "codetools",
    "cpp11",
    "crayon",
    "desc",
    "digest",
    "distributional",
    "dplyr",
    "farver",
    "future",
    "future.apply",
    "generics",
    "ggdist",
    "ggplot2",
    "ggridges",
    "globals",
    "glue",
    "gridExtra",
    "gtable",
    "hms",
    "inline",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "listenv",
    "lme4",
    "loo",
    "magrittr",
    "MASS",
    "Matrix",
    "matrixStats",
    "mgcv",
    "minqa",
    "mvtnorm",
    "nleqslv",
    "nlme",
    "nloptr",
    "numDeriv",
    "otel",
    "parallelly",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "plyr",
    "posterior",
    "prettyunits",
    "processx",
    "progress",
    "ps",
    "purrr",
    "quadprog",
    "QuickJSR",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "Rdpack",
    "readr",
    "reformulas",
    "reshape2",
    "rlang",
    "rstan",
    "rstantools",
    "S7",
    "scales",
    "StanHeaders",
    "stringi",
    "stringr",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "viridisLite",
    "vroom",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "tva_recovery.Rmd",
      "filename": "tva_recovery.html",
      "title": "RStanTVA Parameter Recovery Study",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Generative model",
        "Level 1: Trial",
        "Level 2: Experimental condition",
        "Level 3: Subject-level effects (hyperparameters)",
        "Simulations",
        "Model likelihood",
        "Parameter recovery",
        "Maximum-likelihood estimation (MLE)",
        "RStanTVA-ML: Single participant, single condition",
        "RStanTVA-MLN: Single participant, condition as fixed effect",
        "RStanTVA-MLR: Single participant, single condition, with regularization (priors)",
        "RStanTVA-MLRN: Single participant, condition as fixed effect, with regularization (priors)",
        "RStanTVA-NB: Bayesian non-hierarchical inference",
        "RStanTVA-HB*: Bayesian hierarchical inference",
        "Comparison of MLE and Bayes"
      ],
      "created": "2025-12-18 15:35:04",
      "modified": "2025-12-18 15:35:04",
      "commits": 1
    }
  ],
  "_score": 4.778151250383644,
  "_indexed": true,
  "_nocasepkg": "rstantva",
  "_universes": [
    "mmrabe"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.0",
      "date": "2026-10-19T20:30:30.000Z",
      "distro": "resolute",
      "commit": "89a16c471a5982f9a9566cb2c2bd40248e8a85b8",
      "fileid": "https://r2.ropensci.org/043f5d20b6e4c629b23044c7c016ac18faa3c5f5ddc0fb516b4c55308520ed84",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mmrabe/actions/runs/39317726882"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.5.0",
      "date": "2026-10-19T20:29:12.000Z",
      "distro": "resolute",
      "commit": "89a16c471a5982f9a9566cb2c2bd40248e8a85b8",
      "fileid": "https://r2.ropensci.org/0ff5b92e72e986311748169b12a847dcd229d7d2fdc1253059c407fdecc3298b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mmrabe/actions/runs/39317726882"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.0",
      "date": "2026-10-19T20:42:13.000Z",
      "commit": "89a16c471a5982f9a9566cb2c2bd40248e8a85b8",
      "fileid": "https://r2.ropensci.org/d70d83ca36cf0db161f0cfe6e758a9f5f2167637318d06a2637ddc257daea040",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mmrabe/actions/runs/39317726882"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.5.0",
      "date": "2026-10-19T20:42:49.000Z",
      "commit": "89a16c471a5982f9a9566cb2c2bd40248e8a85b8",
      "fileid": "https://r2.ropensci.org/37bcee3ad474f2c50324afc04b3437e081fa50db973babd14f7ed1e19c6546b2",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mmrabe/actions/runs/39317726882"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.0",
      "date": "2026-10-19T20:29:16.000Z",
      "commit": "89a16c471a5982f9a9566cb2c2bd40248e8a85b8",
      "fileid": "https://r2.ropensci.org/f50b44038fb7d1d407e2a009c652c17aa925d0e4056016ed80580df5364d45f8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mmrabe/actions/runs/39317726882"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.0",
      "date": "2026-10-19T20:26:54.000Z",
      "commit": "89a16c471a5982f9a9566cb2c2bd40248e8a85b8",
      "fileid": "https://r2.ropensci.org/115154ddb9ff9c94dae74d6f9da291b16c1e28d332fc137c7e4c94704ef4f0b6",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mmrabe/actions/runs/39317726882"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.0",
      "date": "2026-10-19T20:26:54.000Z",
      "commit": "89a16c471a5982f9a9566cb2c2bd40248e8a85b8",
      "fileid": "https://r2.ropensci.org/018e5f9dbe79c4256fbf5c10f2ecaacb81d78f9ac5aadce1924153e0a843fe01",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mmrabe/actions/runs/39317726882"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.5.0",
      "date": "2026-10-19T20:26:45.000Z",
      "commit": "89a16c471a5982f9a9566cb2c2bd40248e8a85b8",
      "fileid": "https://r2.ropensci.org/add408ad0ca9d336bf5b4900c7ee8cf31391c4ddf4602e421a8bd944b3b243eb",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mmrabe/actions/runs/39317726882"
    }
  ]
}