Package: rpm 0.7-3

rpm: Modeling of Revealed Preferences Matchings

Statistical estimation of revealed preference models from data collected on bipartite matchings. The models are for matchings within a bipartite population where individuals have utility for people based on known and unknown characteristics. People can form a partnership or remain unpartnered. The model represents both the availability of potential partners of different types and preferences of individuals for such people. The software estimates preference parameters based on sample survey data on partnerships and population composition. The simulation of matchings and goodness-of-fit are considered. See Goyal, Handcock, Jackson, Rendall and Yeung (2022) <doi:10.1093/jrsssa/qnad031>.

Authors:Mark S. Handcock [aut, cre], Ryan M. Admiraal [ctb], Fiona C. Yeung [ctb], Heide M. Jackson [ctb], Michael S. Rendall [ctb], Shuchi Goyal [ctb]

rpm_0.7-3.tar.gz
rpm_0.7-3.zip(r-4.5)rpm_0.7-3.zip(r-4.4)rpm_0.7-3.zip(r-4.3)
rpm_0.7-3.tgz(r-4.4-x86_64)rpm_0.7-3.tgz(r-4.4-arm64)rpm_0.7-3.tgz(r-4.3-x86_64)rpm_0.7-3.tgz(r-4.3-arm64)
rpm_0.7-3.tar.gz(r-4.5-noble)rpm_0.7-3.tar.gz(r-4.4-noble)
rpm_0.7-3.tgz(r-4.4-emscripten)rpm_0.7-3.tgz(r-4.3-emscripten)
rpm.pdf |rpm.html
rpm/json (API)

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

Peer review:

Bug tracker:https://github.com/handcock/rpm/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

modelingstatistics

3.54 score 2 stars 35 scripts 176 downloads 35 exports 49 dependencies

Last updated 7 months agofrom:d39a470541. Checks:OK: 1 NOTE: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 18 2024
R-4.5-win-x86_64NOTEOct 18 2024
R-4.5-linux-x86_64NOTEOct 18 2024
R-4.4-win-x86_64NOTEOct 18 2024
R-4.4-mac-x86_64NOTEOct 18 2024
R-4.4-mac-aarch64NOTEOct 18 2024
R-4.3-win-x86_64NOTEOct 18 2024
R-4.3-mac-x86_64NOTEOct 18 2024
R-4.3-mac-aarch64NOTEOct 18 2024

Exports:anova_rpmlistaugpmfaugpmfWMauxGammacheckstablecontrol.rpmeqcondGale_ShapleygloglikgofGS_NTUGSi_NTUGSi_NTU_Ohloglikjeqcondlist_rhs.formulalogliklogLikNulllogpmfestmessage_printmicrosimulateplot.gofrpmprobcountsPSeqcondPSgeqcondqloglikrpmrpm_MLPLErpm.model.functionsrpm.model.matrixrpmpopulationpmfstablearmasummary_rpmultult<-

Dependencies:abindclicodacodetoolscolorspacedigestdoFuturedoRNGdplyrfansifarverforeachfuturefuture.applygenericsggplot2globalsgluegtableisobanditeratorslabelinglatticelifecyclelistenvmagrittrMASSMatrixmatrixStatsmgcvmunsellnlmenloptrparallellypillarpkgconfigR6RColorBrewerRcppRcppArmadillorlangrngtoolsscalestibbletidyselectutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Modeling of Revealed Preferences Matchingsrpm-package
ANOVA for rpm Fitsanova.rpm anova_rpmlist
Auxiliary for Controlling rpmcontrol.rpm
Faux Data on Heterosexual Matchingfauxmatching
This is the version of Gale-Shapley stable matching algorithm (translated from the Matlab code in Menzel (2015)).Gale_Shapley
Calculate goodness-of-fit statistics for Revealed Preference Matchings Model based on observed datagof gof.default gof.rpm plot.gofrpm
Returns a list containing the terms in a given formulalist_rhs.formula
A 'logLik' method for [`rpm`] fits.logLik.rpm
Calculate the null model likelihoodlogLikNull logLikNull.rpm
[`print`] objects to the [`message`] output.message_print
Micro simulate a population from a Revealed Preference Matchings Modelmicrosimulate
Fit a Revealed Preference Matchings Modelrpm rpm.object
Fit a Revealed Preference Matchings Modelrpm_MLPLE
Terms used in a Revealed Preference Matchings Modelabsdiff diff match mix MtoW_diff M_atleast M_atmost M_cov M_factor M_greaterthan rpm-terms rpm.terms terms-rpm terms.rpm WtoM_diff W_atleast W_atmost W_cov W_factor W_greaterthan
Creates a model function list for the continuous terms in a Revealed Preference Matchings Modelrpm.model.functions
Creates a model matrix to estimate the parameters of a Revealed Preference Matchings Modelrpm.model.matrix
Compute the population distribution of pairs and singles from a Revealed Preference Matchings Modelrpmpopulationpmf
Simulate a sample of pairs and singles from a Revealed Preference Matchings Modelsimulate.rpm
Summarize Revealed Preference Matchings data via a Model Specificationprint.summary_rpm show.summary_rpm summary_rpm
Summarizing rpm Model Fitsprint.summary.rpm summary.rpm
Extract or replace the *ult*imate (last) element of a vector or a list, or an element counting from the end.ult ult<-