Package: idealstan 1.0

idealstan: Robust Measurement with 'Stan'

Offers item-response theory (IRT) ideal-point measurement modeling for diverse distributions, missing data, and over-time variation. Full and approximate Bayesian sampling with 'Stan' (<https://mc-stan.org/>).

Authors:Robert Kubinec [aut, cre]

idealstan_1.0.tar.gz
idealstan_1.0.zip(r-4.7)idealstan_1.0.zip(r-4.6)idealstan_1.0.zip(r-4.5)
idealstan_1.0.tgz(r-4.6-any)idealstan_1.0.tgz(r-4.5-any)
idealstan_1.0.tar.gz(r-4.7-any)idealstan_1.0.tar.gz(r-4.6-any)
idealstan_1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
idealstan/json (API)

# Install 'idealstan' in R:
install.packages('idealstan', repos = c('https://saudiwin.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/saudiwin/idealstan/issues

Datasets:
  • delaware - Rollcall vote data for Delaware State Legislature
  • senate114 - Rollcall vote data for 114th Senate

On CRAN:

Conda:

bayesianirtstan

6.55 score 58 stars 37 scripts 560 downloads 27 exports 110 dependencies

Last updated from:a20deaa86c. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK379
source / vignettesOK401
linux-release-x86_64OK404
macos-release-arm64OK167
macos-oldrel-arm64OK235
windows-develOK163
windows-releaseOK154
windows-oldrelOK166
wasm-releaseOK317

Exports:derive_chainid_estimateid_extractid_makeid_meid_plot_all_histid_plot_compareid_plot_covid_plot_gbeta_priorid_plot_itemsid_plot_legisid_plot_legis_dynid_plot_legis_varid_plot_personsid_plot_persons_dynid_plot_ppcid_plot_rhatsid_plot_simsid_post_predid_show_truesid_sim_coverageid_sim_genid_sim_residid_sim_rmselaunch_shinystanstan_tracesummary

Dependencies:abindarrayhelpersbackportsbase64encbayesplotBHbridgesamplingbrmsBrobdingnagbslibcachemcallrcheckmateclicodacodetoolscommonmarkcpp11descdigestdistributionaldplyrfarverfastmapfontawesomeforcatsfsfuturefuture.applygenericsggdistgghighlightggplot2ggrepelggridgesggthemesglobalsgluegridExtragtablehtmltoolshttpuvinlineinsightisobandjquerylibjsonlitelabelinglaterlatticelazyevallifecyclelistenvloomagrittrMatrixmatrixStatsmemoisemgcvmimemvtnormnleqslvnlmenumDerivordbetaregotelparallellypillarpkgbuildpkgconfigplyrposteriorprocessxpromisespspurrrquadprogQuickJSRR6rappdirsRColorBrewerRcppRcppEigenRcppParallelreshape2rlangrstanrstantoolsrstudioapiS7sassscalesshinysourcetoolsStanHeadersstringistringrsvDialogssvGUIsvUnittensorAtibbletidybayestidyrtidyselectutf8vctrsviridisLitewithrxtable

Readme and manuals

Help Manual

Help pageTopics
Rollcall vote data for Delaware State Legislaturedelaware
Helper Function for 'loo' calculationderive_chain
Estimate an 'idealstan' modelid_estimate
Generic Method for Extracting Posterior Samplesid_extract
Extract 'stan' joint posterior distribution from 'idealstan' objectid_extract,idealstan-method
Create data to run IRT modelid_make
Calculate ideal point marginal effectsid_me
Calculate ideal point marginal effectsid_me,idealstan-method
Density plots of Posterior Parametersid_plot_all_hist
Function to compare two fitted idealstan models by plotting ideal points. Assumes that underlying data is the same for both models.id_plot_compare
Marginal Effects Plot for Hierarchical Covariatesid_plot_cov
Launch the Generalized Beta Distribution Explorer Shiny Appid_plot_gbeta_prior
Plot Item Discrimination or Difficulty Parametersid_plot_items
Plot Legislator/Person Over-time Variancesid_plot_legis_var
Plot Legislator/Person and Bill/Item Ideal Pointsid_plot_persons
Function to plot dynamic ideal point modelsid_plot_persons_dyn
Plot Posterior Predictive Distribution for 'idealstan' Objectsid_plot_ppc
Plot Posterior Predictive Distribution for 'idealstan' Objectsid_plot_ppc,idealstan-method
Plotting Function to Display Rhat Distributionid_plot_rhats
This function plots the results from a simulation generated by 'id_sim_gen()'.id_plot_sims id_show_trues
Generic Method for Obtaining Posterior Predictive Distribution from Stan Objectsid_post_pred
Posterior Prediction for 'idealstan' objectsid_post_pred,idealstan-method
Function that computes how often the true value of the parameter is included within the 95/5 high posterior density intervalid_sim_coverage
Simulate IRT ideal point dataid_sim_gen
Residual function for checking estimated samples compared to true simulation scores Returns a data frame with residuals plus quantiles.id_sim_resid
RMSE function for calculating individual RMSE values compared to true simulation scores Returns a data frame with RMSE plus quantiles.id_sim_rmse
Data and Identification for 'id_estimate'idealdata-class
Results of 'id_estimate' functionidealstan-class
Generic Method to Use 'shinystan' with 'idealstan'launch_shinystan
Function to Launch Shinystan with an 'idealstan' Objectlaunch_shinystan,idealstan-method
Function that provides additional check questions for package releaserelease_questions
Rollcall vote data for 114th Senatesenate114
Plot the MCMC posterior draws by chainstan_trace
Plot the MCMC posterior draws by chainstan_trace,idealstan-method
Posterior Summaries for fitted 'idealstan' objectsummary,idealstan-method