{
  "_id": "6ab29dfc3d719c1f8408dd4c",
  "Package": "stanpop",
  "Title": "Stan-based Poll of Polls Models",
  "Version": "1.0.1",
  "Authors@R": "person(given = \"Mans\",\nfamily = \"Magnusson\",\nrole = c(\"aut\", \"cre\"),\nemail = \"mons.magnusson@gmail.com\")",
  "Description": "Stan Models and code to run Bayesian poll of polls models.",
  "License": "MIT + file LICENSE",
  "Additional_repositories": "https://mc-stan.org/r-packages/",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "Remotes": [
    "stan-dev/cmdstanr"
  ],
  "Config/pak/sysreqs": "cmake make",
  "Repository": "https://staffanbetner.r-universe.dev",
  "Date/Publication": "2026-09-22 13:00:08 UTC",
  "RemoteUrl": "https://github.com/MansMeg/stanpop",
  "RemoteRef": "HEAD",
  "RemoteSha": "458636a6c859f55d9378bb37ef7de4940485babd",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-22 15:14:42 UTC",
    "User": "root"
  },
  "Author": "Mans Magnusson [aut, cre]",
  "Maintainer": "Mans Magnusson <mons.magnusson@gmail.com>",
  "_user": "staffanbetner",
  "_type": "src",
  "_file": "stanpop_1.0.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/45a3b44e191431e37b9988f36b2edc5726b03ac7b860b87d07ef096f26418ecf",
  "_filesize": 29794105,
  "_sha256": "45a3b44e191431e37b9988f36b2edc5726b03ac7b860b87d07ef096f26418ecf",
  "_expires": "2026-12-31T15:25:44.000Z",
  "_created": "2026-09-22T15:14:42.000Z",
  "_published": "2026-09-22T15:25:48.345Z",
  "_jobs": [
    {
      "job": 106807746665,
      "time": 411,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10703755081"
    },
    {
      "job": 106807746942,
      "time": 352,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10703540359"
    },
    {
      "job": 106807746577,
      "time": 259,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10702108955"
    },
    {
      "job": 106807746505,
      "time": 292,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10703885653"
    },
    {
      "job": 106806013171,
      "time": 254,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10702613187"
    },
    {
      "job": 106807746555,
      "time": 165,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10703355021"
    },
    {
      "job": 106807746536,
      "time": 333,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10702629829"
    },
    {
      "job": 106807746579,
      "time": 377,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10703670005"
    },
    {
      "job": 106807746407,
      "time": 352,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10702774844"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/staffanbetner/actions/runs/35745474919",
  "_status": "success",
  "_upstream": "https://github.com/MansMeg/stanpop",
  "_commit": {
    "id": "458636a6c859f55d9378bb37ef7de4940485babd",
    "author": "jensfinnas <jens.finnas@gmail.com>",
    "committer": "jensfinnas <jens.finnas@gmail.com>",
    "message": "Add 2026 Swedish election results to swedish_elections (v1.0.1).\n\nCo-authored-by: Cursor <cursoragent@cursor.com>\n",
    "time": 1790082008
  },
  "_maintainer": {
    "name": "Mans Magnusson",
    "email": "mons.magnusson@gmail.com",
    "login": "mansmeg",
    "description": "",
    "uuid": 2458198
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "digest",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "rstan",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "yaml",
      "role": "Imports"
    },
    {
      "package": "abind",
      "role": "Suggests"
    },
    {
      "package": "bayesplot",
      "role": "Suggests"
    },
    {
      "package": "BH",
      "role": "Suggests"
    },
    {
      "package": "cmdstanr",
      "role": "Suggests"
    },
    {
      "package": "matrixStats",
      "role": "Suggests"
    },
    {
      "package": "git2r",
      "role": "Suggests"
    },
    {
      "package": "posterior",
      "role": "Suggests"
    },
    {
      "package": "RcppEigen",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 2.1.0",
      "role": "Suggests"
    }
  ],
  "_owner": "mansmeg",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-07",
      "n": 25
    },
    {
      "week": "2026-08",
      "n": 2
    },
    {
      "week": "2026-09",
      "n": 1
    },
    {
      "week": "2026-16",
      "n": 4
    },
    {
      "week": "2026-18",
      "n": 1
    },
    {
      "week": "2026-23",
      "n": 1
    },
    {
      "week": "2026-39",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-02-12"
    },
    {
      "name": "v0.2.0",
      "date": "2026-02-16"
    },
    {
      "name": "v0.3.0",
      "date": "2026-02-17"
    },
    {
      "name": "v0.4.0",
      "date": "2026-02-25"
    },
    {
      "name": "v0.7.4",
      "date": "2026-04-14"
    },
    {
      "name": "v0.7.5",
      "date": "2026-04-19"
    },
    {
      "name": "v0.7.6",
      "date": "2026-04-19"
    },
    {
      "name": "v0.7.7",
      "date": "2026-04-21"
    },
    {
      "name": "v0.4.6",
      "date": "2026-04-22"
    },
    {
      "name": "v0.8.0",
      "date": "2026-04-22"
    },
    {
      "name": "v0.8.2",
      "date": "2026-04-23"
    },
    {
      "name": "v0.8.3",
      "date": "2026-04-27"
    },
    {
      "name": "v0.8.4",
      "date": "2026-04-30"
    },
    {
      "name": "v0.9.3",
      "date": "2026-05-19"
    },
    {
      "name": "v1.0.0",
      "date": "2026-06-05"
    }
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "mansmeg",
      "count": 457,
      "uuid": 2458198
    },
    {
      "user": "jtorgander",
      "count": 4,
      "uuid": 55882444
    },
    {
      "user": "jensfinnas",
      "count": 1,
      "uuid": 1089739
    }
  ],
  "_userbio": {
    "uuid": 8129424,
    "type": "user",
    "name": "Staffan Betnér",
    "followers": 26,
    "description": "Statistician"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/stanpop"
  },
  "_devurl": "https://github.com/mansmeg/stanpop",
  "_searchresults": 17,
  "_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/stanpop.html",
    "LICENSE"
  ],
  "_cranurl": false,
  "_exports": [
    "as.polls_data",
    "assert_stan_data_model",
    "collection_midpoint_dates",
    "complete_poll_data",
    "complete_poll_info",
    "complete_poll_y",
    "complete_polls",
    "compute_prediction_error",
    "create_constrained_names_to_unconstrained_idx_map",
    "create_unpar_one_to_one_map",
    "curate_swedish_polls",
    "diagnose_extract_min_eigen_value_Omega",
    "divergent_transitions_percentiles",
    "elpd_known_state",
    "end_date",
    "end_date<-",
    "end_dates",
    "end_dates<-",
    "existing_parties",
    "extract",
    "extract_parameter_names",
    "extract_poll_of_polls_input_arguments",
    "extract_poll_of_polls_refit_arguments",
    "extract_poll_of_polls_sample_arguments",
    "extract_pop_election_period",
    "extract_pop_empirical_posterior_mean_x_change",
    "geom_collection_period",
    "geom_known_state",
    "geom_latent_state",
    "geom_polls_time_weights",
    "geom_pop_line",
    "geom_publish_date",
    "geom_stan_polls_data",
    "get_adaptation_info",
    "get_known_state_lookback_windows",
    "get_known_state_periods",
    "get_last_evaluation_info",
    "get_latent_state_for_dates",
    "get_model_diagnostics",
    "get_model_model_arguments",
    "get_ndraws",
    "get_num_pars",
    "get_num_upars",
    "get_parameter_names",
    "get_sampler_params",
    "get_stan_date",
    "get_stancode",
    "get_time_points",
    "house_levels",
    "houses",
    "incorrect_draws",
    "latent_state",
    "latent_state_abind",
    "latent_state_apply",
    "latent_state_draw",
    "latent_state_FUN",
    "latent_state_mean",
    "latent_state_mean_dates",
    "latent_state_percentiles",
    "latent_state_sd",
    "latent_state_subset",
    "load_pop",
    "log_prob",
    "logMeanExp",
    "model_arguments",
    "model_config",
    "n",
    "n<-",
    "ndraws",
    "parameter_block_names",
    "parameter_block_names_from_unconstrained_index",
    "parameter_names",
    "parameter_names_from_unconstrained_index",
    "parameter_unique_names_from_unconstrained_index",
    "parameters_counts",
    "party_levels",
    "percentile_known_state",
    "plot_parameters_areas",
    "plot_parameters_mcmc_hex",
    "plot_parameters_mcmc_intervals",
    "plot_parameters_mcmc_scatter",
    "plot_poll_of_polls",
    "poll_id",
    "poll_id<-",
    "poll_ids",
    "poll_ids<-",
    "poll_of_polls",
    "poll_predictive_distribution",
    "polls_data",
    "polls_time_reweight",
    "polls_time_weights",
    "polls_time_weights<-",
    "publish_date",
    "publish_date<-",
    "publish_dates",
    "publish_dates<-",
    "recompile_stanfit",
    "reestimate_poll_of_polls",
    "refit_poll_of_polls",
    "remove_file_extension",
    "remove_known_states",
    "rerun_poll_of_polls",
    "Rhat_is_above_m",
    "Rhat_is_above_m_by_parameter_block",
    "Rhat_is_NA",
    "Rhat_is_NA_by_parameter_block",
    "rmse_known_state",
    "save_pop",
    "setup_latent_time_ranges",
    "simulate_polls",
    "stan_polls_data",
    "stan_polls_data_model",
    "stan_polls_data_model2",
    "stan_polls_data_model3",
    "stan_polls_data_model5",
    "stan_polls_data_model6",
    "stan_polls_data_model6b",
    "stan_polls_data_model7",
    "stan_polls_data_model8a",
    "stan_polls_data_model8a1",
    "stan_polls_data_model8b",
    "stan_polls_data_model8c",
    "stan_polls_data_model8d",
    "standard_error",
    "start_date",
    "start_date<-",
    "start_dates",
    "start_dates<-",
    "subset_dates",
    "subset_latent_state_dates",
    "subset_publish_dates",
    "subset_time_line_dates",
    "summarize_polls_time_weights",
    "time_line",
    "time_range",
    "time_range_polls",
    "time_range<-",
    "time_ranges_are_disjoint",
    "time_scale_dates",
    "traceplot",
    "validate_backend_sample_arguments",
    "x_predict",
    "y",
    "y_predict",
    "y<-"
  ],
  "_datasets": [
    {
      "name": "german_elections",
      "title": "German election data",
      "object": "german_elections",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "PublYearMonth",
        "Company",
        "CDU/CSU",
        "SPD",
        "GRUNE",
        "FDP",
        "LINKE",
        "AfD",
        "Uncertain",
        "n",
        "PublDate",
        "collectPeriodFrom",
        "collectPeriodTo",
        "approxPeriod",
        "house"
      ],
      "rows": 6,
      "table": true,
      "tojson": true
    },
    {
      "name": "german_party_time_ranges",
      "title": "Party time ranges",
      "object": "german_party_time_ranges",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "german_polls",
      "title": "German polls data",
      "object": "german_polls",
      "class": [
        "data.frame"
      ],
      "fields": [
        "PublYearMonth",
        "Company",
        "CDU/CSU",
        "SPD",
        "GRUNE",
        "FDP",
        "LINKE",
        "AfD",
        "Uncertain",
        "n",
        "PublDate",
        "collectPeriodFrom",
        "collectPeriodTo",
        "approxPeriod",
        "house"
      ],
      "rows": 4609,
      "table": true,
      "tojson": true
    },
    {
      "name": "german_polls_curated",
      "title": "German polls data",
      "object": "german_polls_curated",
      "class": [
        "data.frame"
      ],
      "fields": [
        "PublYearMonth",
        "Company",
        "CDU/CSU",
        "SPD",
        "GRUNE",
        "FDP",
        "LINKE",
        "AfD",
        "Uncertain",
        "n",
        "PublDate",
        "collectPeriodFrom",
        "collectPeriodTo",
        "approxPeriod",
        "house"
      ],
      "rows": 4606,
      "table": true,
      "tojson": true
    },
    {
      "name": "house_map",
      "title": "Map between houses and house names",
      "object": "house_map",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "country",
        "house_name",
        "house"
      ],
      "rows": 43,
      "table": true,
      "tojson": true
    },
    {
      "name": "pd_test",
      "title": "A subset of swe_polls stored as a [polls_data] object",
      "object": "pd_test",
      "class": [
        "polls_data"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "spanish_elections",
      "title": "Spanish election data",
      "object": "spanish_elections",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "PublYearMonth",
        "Company",
        "PSOE",
        "PP",
        "VOX",
        "UP",
        "Cs",
        "ERC",
        "CC",
        "Uncertain",
        "n",
        "PublDate",
        "collectPeriodFrom",
        "collectPeriodTo",
        "approxPeriod",
        "house"
      ],
      "rows": 6,
      "table": true,
      "tojson": true
    },
    {
      "name": "spanish_party_time_ranges",
      "title": "Party time ranges",
      "object": "spanish_party_time_ranges",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "spanish_polls",
      "title": "Spanish polls data",
      "object": "spanish_polls",
      "class": [
        "data.frame"
      ],
      "fields": [
        "PublYearMonth",
        "Company",
        "PSOE",
        "PP",
        "VOX",
        "UP",
        "Cs",
        "ERC",
        "CC",
        "Uncertain",
        "n",
        "PublDate",
        "collectPeriodFrom",
        "collectPeriodTo",
        "approxPeriod",
        "house"
      ],
      "rows": 1852,
      "table": true,
      "tojson": true
    },
    {
      "name": "spanish_polls_curated",
      "title": "Spanish polls data",
      "object": "spanish_polls_curated",
      "class": [
        "data.frame"
      ],
      "fields": [
        "PublYearMonth",
        "Company",
        "PSOE",
        "PP",
        "VOX",
        "UP",
        "Cs",
        "ERC",
        "CC",
        "Uncertain",
        "n",
        "PublDate",
        "collectPeriodFrom",
        "collectPeriodTo",
        "approxPeriod",
        "house"
      ],
      "rows": 1345,
      "table": true,
      "tojson": true
    },
    {
      "name": "swedish_elections",
      "title": "Swedish election data",
      "object": "swedish_elections",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "PublYearMonth",
        "Company",
        "M",
        "L",
        "C",
        "KD",
        "S",
        "V",
        "MP",
        "SD",
        "FI",
        "Uncertain",
        "n",
        "PublDate",
        "collectPeriodFrom",
        "collectPeriodTo",
        "approxPeriod",
        "house"
      ],
      "rows": 9,
      "table": true,
      "tojson": true
    },
    {
      "name": "swedish_polls",
      "title": "Swedish polls data",
      "object": "swedish_polls",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "PublYearMonth",
        "Company",
        "M",
        "L",
        "C",
        "KD",
        "S",
        "V",
        "MP",
        "SD",
        "FI",
        "Uncertain",
        "n",
        "PublDate",
        "collectPeriodFrom",
        "collectPeriodTo",
        "approxPeriod",
        "house"
      ],
      "rows": 1711,
      "table": true,
      "tojson": true
    },
    {
      "name": "swedish_polls_curated",
      "title": "Spanish polls data",
      "object": "swedish_polls_curated",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "PublYearMonth",
        "Company",
        "M",
        "L",
        "C",
        "KD",
        "S",
        "V",
        "MP",
        "SD",
        "FI",
        "Uncertain",
        "n",
        "PublDate",
        "collectPeriodFrom",
        "collectPeriodTo",
        "approxPeriod",
        "house"
      ],
      "rows": 1660,
      "table": true,
      "tojson": true
    },
    {
      "name": "x_test",
      "title": "Four true latent states used in experiments",
      "object": "x_test",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "assert_dates_in_time_line",
      "title": "Assert that the dates are available within the time_line",
      "topics": [
        "assert_dates_in_time_line"
      ]
    },
    {
      "page": "assert_poll_data_in_time_line",
      "title": "Assert that the poll_data object dates are available within the time_line",
      "topics": [
        "assert_poll_data_in_time_line"
      ]
    },
    {
      "page": "assert_poll_data_in_time_line_using_time_scale",
      "title": "Assert that the poll_data object dates are available within the [time_line] using time_scale",
      "topics": [
        "assert_poll_data_in_time_line_using_time_range",
        "assert_poll_data_in_time_line_using_time_scale"
      ]
    },
    {
      "page": "assert_stan_data_model",
      "title": "Check Stan Data for specific model",
      "topics": [
        "assert_stan_data_model",
        "assert_stan_data_model.model2",
        "assert_stan_data_model.model3",
        "assert_stan_data_model.model4",
        "assert_stan_data_model.model5",
        "assert_stan_data_model.model6",
        "assert_stan_data_model.model6b",
        "assert_stan_data_model.model8a",
        "assert_stan_data_model.model8a1",
        "assert_stan_data_model.model8a3",
        "assert_stan_data_model.model8b",
        "assert_stan_data_model.model8c",
        "assert_stan_data_model.model8d",
        "assert_stan_data_model.model8e",
        "assert_stan_data_model.model8f",
        "assert_stan_data_model.model8g",
        "assert_stan_data_model.model8i",
        "assert_stan_data_model.model8k",
        "assert_stan_data_model.model8l",
        "assert_stan_data_model.model8m",
        "assert_stan_data_model.model9"
      ]
    },
    {
      "page": "complete_poll_info",
      "title": "Return indicator on polls without missing values",
      "topics": [
        "complete_polls",
        "complete_poll_data",
        "complete_poll_info",
        "complete_poll_y"
      ]
    },
    {
      "page": "compute_g_scale_default",
      "title": "Compute the default value of g_scale",
      "topics": [
        "compute_g_scale_default"
      ]
    },
    {
      "page": "compute_gamma_parameters",
      "title": "Compute gamma parameters with same expectation and variances as a half-normal with parameter sigma",
      "topics": [
        "compute_gamma_parameters"
      ]
    },
    {
      "page": "compute_prediction_error",
      "title": "Compute prediction error for a poll_of_polls model",
      "topics": [
        "compute_prediction_error"
      ]
    },
    {
      "page": "create_constrained_names_to_unconstrained_idx_map",
      "title": "Create a map between constrained parameter names and unconstrained parameter indecies",
      "topics": [
        "create_constrained_names_to_unconstrained_idx_map"
      ]
    },
    {
      "page": "create_unpar_one_to_one_map",
      "title": "Semi-automatic construction of parameters for specific models",
      "topics": [
        "create_unpar_one_to_one_map"
      ]
    },
    {
      "page": "curate_swedish_polls",
      "title": "Curate the Swedish polls dataset",
      "topics": [
        "curate_swedish_polls"
      ]
    },
    {
      "page": "dates_in_time_line",
      "title": "What dates are available within the time_line",
      "topics": [
        "dates_in_time_line"
      ]
    },
    {
      "page": "diagnose_extract_min_eigen_value_Omega",
      "title": "Extract minimal eigen value per iteration",
      "topics": [
        "diagnose_extract_min_eigen_value_Omega"
      ]
    },
    {
      "page": "divergent_transitions_percentiles",
      "title": "Extract the percentiles of the divergent transistions",
      "topics": [
        "divergent_transitions_percentiles"
      ]
    },
    {
      "page": "elpd_known_state",
      "title": "Compute the elpd, percentiles and rmse for a true [known_state]",
      "topics": [
        "elpd_known_state",
        "elpd_known_state.pop_model8f1",
        "elpd_known_state.pop_model8f2",
        "percentile_known_state",
        "rmse_known_state"
      ]
    },
    {
      "page": "existing_parties",
      "title": "Return parties existing in a given model range",
      "topics": [
        "existing_parties"
      ]
    },
    {
      "page": "extract",
      "title": "Extract parameters from the stan object",
      "topics": [
        "extract",
        "extract.poll_of_polls"
      ]
    },
    {
      "page": "extract_poll_of_polls_refit_arguments",
      "title": "Extract refit-ready constructor arguments from a poll_of_polls object",
      "topics": [
        "extract_poll_of_polls_input_arguments",
        "extract_poll_of_polls_refit_arguments",
        "extract_poll_of_polls_sample_arguments"
      ]
    },
    {
      "page": "extract_pop_election_period",
      "title": "Deprecated: extract election periods from a poll_of_polls object",
      "topics": [
        "extract_pop_election_period"
      ]
    },
    {
      "page": "extract_pop_empirical_posterior_mean_x_change",
      "title": "Extract mean x change from a poll_of_polls object",
      "topics": [
        "extract_pop_empirical_posterior_mean_x_change"
      ]
    },
    {
      "page": "format_election_period_to_string",
      "title": "Format election period lists to string for printout",
      "topics": [
        "format_election_period_to_string"
      ]
    },
    {
      "page": "format_obs_x_to_string",
      "title": "Format obs_x lists to string for printout",
      "topics": [
        "format_obs_x_to_string"
      ]
    },
    {
      "page": "geom_known_state",
      "title": "Visualize a known state in a poll_of_polls ggplot",
      "topics": [
        "geom_known_state"
      ]
    },
    {
      "page": "geom_latent_state",
      "title": "Add a [latent_state] geom to a ggplot",
      "topics": [
        "geom_latent_state"
      ]
    },
    {
      "page": "polls_time_weights",
      "title": "Compute a time period weight tibble",
      "topics": [
        "geom_polls_time_weights",
        "polls_time_weights",
        "polls_time_weights.polls_data",
        "polls_time_weights.stan_polls_data",
        "polls_time_weights<-",
        "polls_time_weights<-.polls_data"
      ]
    },
    {
      "page": "geom_stan_polls_data",
      "title": "Visualize a stan_data object",
      "topics": [
        "geom_stan_polls_data"
      ]
    },
    {
      "page": "german_elections",
      "title": "German election data",
      "topics": [
        "german_elections"
      ]
    },
    {
      "page": "german_polls",
      "title": "German polls data",
      "topics": [
        "german_polls",
        "german_polls_curated"
      ]
    },
    {
      "page": "get_adaptation_info",
      "title": "Get adaptation info",
      "topics": [
        "get_adaptation_info"
      ]
    },
    {
      "page": "get_first_poll_as_simplex",
      "title": "The first poll is the poll with the earliest starting date",
      "topics": [
        "get_first_poll_as_simplex"
      ]
    },
    {
      "page": "get_known_state_lookback_windows",
      "title": "Return known-state lookback windows for a poll_of_polls object",
      "topics": [
        "get_known_state_lookback_windows"
      ]
    },
    {
      "page": "get_known_state_periods",
      "title": "Return known-state evaluation periods for a poll_of_polls object",
      "topics": [
        "get_known_state_periods"
      ]
    },
    {
      "page": "get_last_evaluation_info",
      "title": "Return the latest evaluation window for a poll_of_polls object",
      "topics": [
        "get_last_evaluation_info"
      ]
    },
    {
      "page": "get_latent_state_for_dates",
      "title": "Get the latent state for specific dates",
      "topics": [
        "get_latent_state_for_dates"
      ]
    },
    {
      "page": "get_model_diagnostics",
      "title": "Get the model diagnostics used in a [poll_of_polls] object",
      "topics": [
        "get_model_diagnostics"
      ]
    },
    {
      "page": "get_model_model_arguments",
      "title": "Get the model arguments used in a [poll_of_polls] object",
      "topics": [
        "get_model_model_arguments"
      ]
    },
    {
      "page": "get_ndraws",
      "title": "Get the number of draws/samples in a [poll_of_polls] object",
      "topics": [
        "get_ndraws",
        "ndraws"
      ]
    },
    {
      "page": "get_polls_next_known_state_index",
      "title": "Get the next known state index",
      "topics": [
        "get_dates_next_known_state_index",
        "get_polls_next_known_state_index",
        "get_time_line_next_known_state_index"
      ]
    },
    {
      "page": "get_polls_time_points_between_known_states",
      "title": "Get the number of time points between known state",
      "topics": [
        "get_dates_time_points_between_known_states",
        "get_polls_time_points_between_known_states",
        "get_time_line_time_points_between_known_states"
      ]
    },
    {
      "page": "get_polls_time_points_since_last_known_state",
      "title": "Get the number of time points since the last known state",
      "topics": [
        "get_dates_time_points_since_last_known_state",
        "get_polls_time_points_since_last_known_state",
        "get_time_line_time_points_since_last_known_state"
      ]
    },
    {
      "page": "get_sampler_params",
      "title": "Get Sampler Diagnostics",
      "topics": [
        "get_sampler_params",
        "get_sampler_params.poll_of_polls"
      ]
    },
    {
      "page": "get_stan_date",
      "title": "Extract the date when Stan was run",
      "topics": [
        "get_stan_date"
      ]
    },
    {
      "page": "get_stancode",
      "title": "Get Stan Code from a pop object",
      "topics": [
        "get_stancode",
        "get_stancode.poll_of_polls"
      ]
    },
    {
      "page": "get_time_line",
      "title": "Get time line from polls or time range",
      "topics": [
        "get_time_line"
      ]
    },
    {
      "page": "get_time_points",
      "title": "Get the time points for specific dates",
      "topics": [
        "get_time_points",
        "get_time_points.poll_of_polls",
        "get_time_points.time_line"
      ]
    },
    {
      "page": "get_time_points_from_time_line",
      "title": "Get time points from a time line object",
      "topics": [
        "get_time_points_from_time_line",
        "get_total_time_points_from_time_line"
      ]
    },
    {
      "page": "house_levels",
      "title": "Get the levels/houses from a [poll_of_polls] object",
      "topics": [
        "house_levels",
        "party_levels"
      ]
    },
    {
      "page": "house_map",
      "title": "Map between houses and house names",
      "topics": [
        "house_map"
      ]
    },
    {
      "page": "incorrect_draws",
      "title": "What samples are correct?",
      "topics": [
        "incorrect_draws"
      ]
    },
    {
      "page": "latent_state",
      "title": "Create a latent state object",
      "topics": [
        "latent_state",
        "latent_state.poll_of_polls",
        "latent_state.stanfit"
      ]
    },
    {
      "page": "latent_state_abind",
      "title": "Bind latent_state objects",
      "topics": [
        "latent_state_abind"
      ]
    },
    {
      "page": "latent_state_apply",
      "title": "Apply latent_state objects",
      "topics": [
        "latent_state_apply"
      ]
    },
    {
      "page": "latent_state_FUN",
      "title": "Compute an arbitrary function of latent states",
      "topics": [
        "latent_state_FUN",
        "latent_state_FUN.latent_state",
        "latent_state_FUN.poll_of_polls"
      ]
    },
    {
      "page": "latent_state_percentiles",
      "title": "Compute functions of the latent state",
      "topics": [
        "latent_state_draw",
        "latent_state_mean",
        "latent_state_mean_dates",
        "latent_state_percentiles",
        "latent_state_sd"
      ]
    },
    {
      "page": "latent_state_subset",
      "title": "Subset latent_state objects",
      "topics": [
        "latent_state_subset"
      ]
    },
    {
      "page": "load_pop",
      "title": "Load a poll_of_polls object saved with save_pop",
      "topics": [
        "load_pop"
      ]
    },
    {
      "page": "log_prob",
      "title": "Stan Function for pop objects",
      "topics": [
        "get_num_pars",
        "get_num_upars",
        "get_num_upars.default",
        "get_num_upars.poll_of_polls",
        "log_prob",
        "log_prob.default",
        "log_prob.poll_of_polls"
      ]
    },
    {
      "page": "logMeanExp",
      "title": "Extract the data when Stan was run",
      "topics": [
        "logMeanExp"
      ]
    },
    {
      "page": "model_config",
      "title": "Set default values and assert arguments for a model configuration",
      "topics": [
        "model_arguments",
        "model_config"
      ]
    },
    {
      "page": "model_dates_data_frame",
      "title": "Return a data.frame with dates from a list of pop objects",
      "topics": [
        "model_dates_data_frame"
      ]
    },
    {
      "page": "parameter_names",
      "title": "Extract the parameter names and parameter counts from a poll_of_polls object",
      "topics": [
        "extract_parameter_names",
        "get_parameter_names",
        "parameters_counts",
        "parameter_block_names",
        "parameter_names"
      ]
    },
    {
      "page": "parameter_names_from_unconstrained_index",
      "title": "Get parameter names from unconstrained space",
      "topics": [
        "parameter_block_names_from_unconstrained_index",
        "parameter_names_from_unconstrained_index",
        "parameter_unique_names_from_unconstrained_index"
      ]
    },
    {
      "page": "parse_obs_x",
      "title": "Parse a data frame of observed x (t distributed)",
      "topics": [
        "parse_obs_x"
      ]
    },
    {
      "page": "pd_test",
      "title": "A subset of swe_polls stored as a [polls_data] object",
      "topics": [
        "pd_test"
      ]
    },
    {
      "page": "plot_parameters_areas",
      "title": "Plot posterior distributions of parameters",
      "topics": [
        "pairs.poll_of_polls",
        "plot_parameters_areas",
        "plot_parameters_mcmc_hex",
        "plot_parameters_mcmc_intervals",
        "plot_parameters_mcmc_scatter",
        "traceplot",
        "traceplot.poll_of_polls"
      ]
    },
    {
      "page": "plot_parameters_bayesplot",
      "title": "Plot posterior distributions of parameters",
      "topics": [
        "plot_parameters_bayesplot"
      ]
    },
    {
      "page": "plot_poll_of_polls",
      "title": "Plot a [poll_of_polls] object",
      "topics": [
        "geom_pop_line",
        "plot.poll_of_polls",
        "plot_poll_of_polls"
      ]
    },
    {
      "page": "plot.polls_data",
      "title": "Plot a [polls_data] object",
      "topics": [
        "geom_collection_period",
        "geom_publish_date",
        "plot.polls_data"
      ]
    },
    {
      "page": "poll_id",
      "title": "Get and set elements of a [data_polls] object",
      "topics": [
        "collection_midpoint_dates",
        "end_date",
        "end_date<-",
        "end_dates",
        "end_dates<-",
        "houses",
        "n",
        "n<-",
        "poll_id",
        "poll_id<-",
        "poll_ids",
        "poll_ids<-",
        "publish_date",
        "publish_date<-",
        "publish_dates",
        "publish_dates<-",
        "start_date",
        "start_date<-",
        "start_dates",
        "start_dates<-",
        "y",
        "y<-"
      ]
    },
    {
      "page": "poll_of_polls",
      "title": "Fit a poll of polls object",
      "topics": [
        "poll_of_polls"
      ]
    },
    {
      "page": "polls_data",
      "title": "Create a [polls_data] object",
      "topics": [
        "as.polls_data",
        "polls_data",
        "[.polls_data"
      ]
    },
    {
      "page": "polls_time_reweight",
      "title": "Reweights the weights based on function",
      "topics": [
        "polls_time_reweight"
      ]
    },
    {
      "page": "recompile_stanfit",
      "title": "Recompile a poll_of_polls object",
      "topics": [
        "recompile_stanfit"
      ]
    },
    {
      "page": "refit_poll_of_polls",
      "title": "Refit a poll_of_polls object",
      "topics": [
        "reestimate_poll_of_polls",
        "refit_poll_of_polls"
      ]
    },
    {
      "page": "remove_file_extension",
      "title": "Remove file extension",
      "topics": [
        "remove_file_extension"
      ]
    },
    {
      "page": "remove_known_states",
      "title": "function for removing known states outside timeline",
      "topics": [
        "remove_known_states"
      ]
    },
    {
      "page": "rerun_poll_of_polls",
      "title": "Rerun a poll_of_polls object without warm-start reuse",
      "topics": [
        "rerun_poll_of_polls"
      ]
    },
    {
      "page": "Rhat_is_above_m_by_parameter_block",
      "title": "Extract more detailed diagnostic information",
      "topics": [
        "Rhat_is_above_m",
        "Rhat_is_above_m_by_parameter_block",
        "Rhat_is_NA",
        "Rhat_is_NA_by_parameter_block"
      ]
    },
    {
      "page": "sample_polls_y",
      "title": "Sample a dependent variable based on the polls",
      "topics": [
        "sample_polls_y"
      ]
    },
    {
      "page": "save_pop",
      "title": "Save a poll_of_polls object",
      "topics": [
        "save_pop"
      ]
    },
    {
      "page": "setup_latent_time_ranges",
      "title": "Construct a list of [time_range]s",
      "topics": [
        "setup_latent_time_ranges"
      ]
    },
    {
      "page": "simulate_polls",
      "title": "Simulate Polls",
      "topics": [
        "simulate_polls"
      ]
    },
    {
      "page": "spanish_elections",
      "title": "Spanish election data",
      "topics": [
        "spanish_elections"
      ]
    },
    {
      "page": "stan_data_add_missing",
      "title": "Adds missing data through NA to stan data",
      "topics": [
        "stan_data_add_missing"
      ]
    },
    {
      "page": "stan_polls_data",
      "title": "Generate Stan Data from [polls_data] objects",
      "topics": [
        "stan_polls_data",
        "stan_polls_data_model2",
        "stan_polls_data_model3",
        "stan_polls_data_model5",
        "stan_polls_data_model6",
        "stan_polls_data_model6b",
        "stan_polls_data_model7",
        "stan_polls_data_model8a",
        "stan_polls_data_model8a1",
        "stan_polls_data_model8b",
        "stan_polls_data_model8c",
        "stan_polls_data_model8d"
      ]
    },
    {
      "page": "stan_polls_data_model",
      "title": "Compute the posterior predictive distribution of polls",
      "topics": [
        "stan_polls_data_model",
        "stan_polls_data_model.model2",
        "stan_polls_data_model.model3",
        "stan_polls_data_model.model4",
        "stan_polls_data_model.model5",
        "stan_polls_data_model.model6",
        "stan_polls_data_model.model6b",
        "stan_polls_data_model.model6c",
        "stan_polls_data_model.model7",
        "stan_polls_data_model.model9"
      ]
    },
    {
      "page": "standard_error",
      "title": "Compute standard errors for poll estimates",
      "topics": [
        "standard_error"
      ]
    },
    {
      "page": "stanpop",
      "title": "stanpop: Package to run Stan for poll of polls models.",
      "topics": [
        "stanpop-package",
        "stanpop"
      ]
    },
    {
      "page": "subset_latent_state_dates",
      "title": "Subset a latent state based on a time range",
      "topics": [
        "subset_latent_state_dates",
        "subset_time_line_dates"
      ]
    },
    {
      "page": "subset_publish_dates",
      "title": "Subset a [polls_data] object based on a specific [time_range]",
      "topics": [
        "subset_dates",
        "subset_publish_dates"
      ]
    },
    {
      "page": "subset.polls_data",
      "title": "Subset a [polls_data] object.",
      "topics": [
        "subset.polls_data"
      ]
    },
    {
      "page": "summarize_polls_time_weights",
      "title": "Summarize a polls weight object by a time line",
      "topics": [
        "summarize_polls_time_weights"
      ]
    },
    {
      "page": "swedish_elections",
      "title": "Swedish election data",
      "topics": [
        "swedish_elections"
      ]
    },
    {
      "page": "swedish_party_time_ranges",
      "title": "Party time ranges",
      "topics": [
        "german_party_time_ranges",
        "spanish_party_time_ranges",
        "swedish_party_time_ranges"
      ]
    },
    {
      "page": "swedish_polls",
      "title": "Swedish polls data",
      "topics": [
        "swedish_polls"
      ]
    },
    {
      "page": "spanish_polls",
      "title": "Spanish polls data",
      "topics": [
        "spanish_polls",
        "spanish_polls_curated",
        "swedish_polls_curated"
      ]
    },
    {
      "page": "time_line",
      "title": "Construct a time_line",
      "topics": [
        "time_line",
        "time_line.data.frame",
        "time_line.numeric"
      ]
    },
    {
      "page": "time_line_expand",
      "title": "Expand a [time_line] object to a new time range but keep the same time point index.",
      "topics": [
        "time_line_expand"
      ]
    },
    {
      "page": "time_range",
      "title": "Time range",
      "topics": [
        "time_range",
        "time_range<-",
        "time_range_polls"
      ]
    },
    {
      "page": "time_ranges_are_disjoint",
      "title": "Check if two time ranges are disjoint (not overlapping)",
      "topics": [
        "time_ranges_are_disjoint"
      ]
    },
    {
      "page": "time_scale_dates",
      "title": "Convert from days to time scale",
      "topics": [
        "time_scale_dates"
      ]
    },
    {
      "page": "validate_backend_sample_arguments",
      "title": "Validate backend-specific sampler arguments",
      "topics": [
        "validate_backend_sample_arguments"
      ]
    },
    {
      "page": "x_predict",
      "title": "Compute the posterior predictive distribution of polls",
      "topics": [
        "x_predict",
        "x_predict.pop_model6b",
        "x_predict.pop_model6c"
      ]
    },
    {
      "page": "x_test",
      "title": "Four true latent states used in experiments",
      "topics": [
        "x_test"
      ]
    },
    {
      "page": "y_predict",
      "title": "Compute the posterior predictive distribution of polls",
      "topics": [
        "poll_predictive_distribution",
        "y_predict",
        "y_predict.pop_model6b",
        "y_predict.pop_model6c"
      ]
    }
  ],
  "_readme": "https://github.com/MansMeg/stanpop/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "BH",
    "callr",
    "checkmate",
    "cli",
    "cpp11",
    "desc",
    "digest",
    "distributional",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "labeling",
    "lifecycle",
    "loo",
    "lubridate",
    "magrittr",
    "matrixStats",
    "numDeriv",
    "otel",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "posterior",
    "processx",
    "ps",
    "QuickJSR",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "rlang",
    "rstan",
    "S7",
    "scales",
    "StanHeaders",
    "tensorA",
    "tibble",
    "tidyselect",
    "timechange",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "yaml"
  ],
  "_score": 3.376576957056512,
  "_indexed": false,
  "_nocasepkg": "stanpop",
  "_universes": [
    "staffanbetner"
  ],
  "_previous": "1.0.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-09-22T15:18:45.000Z",
      "distro": "resolute",
      "commit": "458636a6c859f55d9378bb37ef7de4940485babd",
      "fileid": "https://r2.ropensci.org/7fc70f3479e81d448d88b3cdc78dcf5fded2df2e555ab8cb39585366651230b6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/staffanbetner/actions/runs/35745474919"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-09-22T15:18:00.000Z",
      "distro": "resolute",
      "commit": "458636a6c859f55d9378bb37ef7de4940485babd",
      "fileid": "https://r2.ropensci.org/7df0e59d6907da9b461739c76f3b2788c4bb7415563be9d73c9b801de7f4b644",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/staffanbetner/actions/runs/35745474919"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-09-22T15:17:07.000Z",
      "commit": "458636a6c859f55d9378bb37ef7de4940485babd",
      "fileid": "https://r2.ropensci.org/9d8d7bd4846c74efc28e41121c89c3b257f7efc3a7192d612542fe9187664274",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/staffanbetner/actions/runs/35745474919"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-09-22T15:22:06.000Z",
      "commit": "458636a6c859f55d9378bb37ef7de4940485babd",
      "fileid": "https://r2.ropensci.org/aa785ef819411409de4c937ae3c64c219318939f986a11879c1f3e6a2578b3af",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/staffanbetner/actions/runs/35745474919"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.1",
      "date": "2026-09-22T15:17:57.000Z",
      "commit": "458636a6c859f55d9378bb37ef7de4940485babd",
      "fileid": "https://r2.ropensci.org/7c95f1c6fd158ffe5dbedb3591bae95f0b62cc1684c10dde972305c6c845012c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/staffanbetner/actions/runs/35745474919"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-09-22T15:18:17.000Z",
      "commit": "458636a6c859f55d9378bb37ef7de4940485babd",
      "fileid": "https://r2.ropensci.org/69cc2c0b642e6906075a8590533287205d2a05f8180fc2ea9fae34937b559564",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/staffanbetner/actions/runs/35745474919"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-09-22T15:17:44.000Z",
      "commit": "458636a6c859f55d9378bb37ef7de4940485babd",
      "fileid": "https://r2.ropensci.org/b51bf995ac70ea6d7abb7f6feac8fd972c821efb67d8b6214e1a6ad37f8fe674",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/staffanbetner/actions/runs/35745474919"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-09-22T15:17:29.000Z",
      "commit": "458636a6c859f55d9378bb37ef7de4940485babd",
      "fileid": "https://r2.ropensci.org/901c1edcdaf05643714b47d4ca3522a0e41c8b0de9ab7e8f3b202e3b31c8cbb6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/staffanbetner/actions/runs/35745474919"
    }
  ]
}