Package: stevemisc 1.8.0

stevemisc: Steve's Miscellaneous Functions

These are miscellaneous functions that I find useful for my research and teaching. The contents include themes for plots, functions for simulating quantities of interest from regression models, functions for simulating various forms of fake data for instructional/research purposes, and many more. All told, the functions provided here are broadly useful for data organization, data presentation, data recoding, and data simulation.

Authors:Steve Miller [aut, cre], Ben Bolker [ctb], Dave Armstrong [ctb], John Fox [ctb], Winston Chang [ctb], Brian Ripley [ctb], Bill Venables [ctb], Pascal van Kooten [ctb], Gerko Vink [ctb], Paul Williamson [ctb], Andreas Beger [ctb], Vincent Arel-Bundock [ctb], Grant McDermott [ctb], Hadley Wickham [ctb]

stevemisc_1.8.0.tar.gz
stevemisc_1.8.0.zip(r-4.5)stevemisc_1.8.0.zip(r-4.4)stevemisc_1.8.0.zip(r-4.3)
stevemisc_1.8.0.tgz(r-4.4-any)stevemisc_1.8.0.tgz(r-4.3-any)
stevemisc_1.8.0.tar.gz(r-4.5-noble)stevemisc_1.8.0.tar.gz(r-4.4-noble)
stevemisc_1.8.0.tgz(r-4.4-emscripten)stevemisc_1.8.0.tgz(r-4.3-emscripten)
stevemisc.pdf |stevemisc.html
stevemisc/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/svmiller/stevemisc/issues

Datasets:

On CRAN:

dplyrmixed-effects-modelsmultivariate-normal-distributiontidyverse

6.24 score 10 stars 1 packages 384 scripts 528 downloads 52 exports 84 dependencies

Last updated 3 months agofrom:ef63ca681d. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-winOKNov 20 2024
R-4.5-linuxOKNov 20 2024
R-4.4-winOKNov 20 2024
R-4.4-macOKNov 20 2024
R-4.3-winOKNov 20 2024
R-4.3-macOKNov 20 2024

Exports:%nin%binred_plotcarrcarreccenter_atcor2datacorvectorsdb_lselectdiff_atdstfct_reorgfilter_refsget_simsget_var_infogroup_mean_center_atgvijennylag_atlinloess_plotlog_atmake_perclabmake_scalemean_atmroundnormal_distp_zpost_bgprepare_refsprint_refsps_btscsps_spellspstqstr1sdr1sd_atr2sdr2sd_atrbnormrd_plotrevcoderstsbayesbootsbtscsshow_ranefsmvrnormtbl_dftheme_steve_fonttheme_steve_mstheme_steve_webto_tblwlswom

Dependencies:abindarmaskpassbase64encbitbit64bootbslibcachemclicliprcodacolorspacecpp11crayoncurldigestdplyrevaluatefansifarverfastmapfontawesomeforcatsfsgenericsggplot2gluegtablehavenhighrhmshtmltoolshttrisobandjquerylibjsonliteknitrlabelinglabelledlatticelifecyclelme4magrittrMASSMatrixmemoisemgcvmimeminqamunsellnlmenloptropensslpillarpkgconfigprettyunitsprogresspurrrR6rappdirsRColorBrewerRcppRcppEigenreadrrlangrmarkdownsassscalesstringistringrsystibbletidyrtidyselecttinytextzdbutf8vctrsviridisLitevroomwithrxfunyaml

Readme and manuals

Help Manual

Help pageTopics
Find Non-Matching Elements%nin%
Generate a Binned-Residual Plot from a Fitted Generalized Linear Modelbinred_plot
Recode a Variablecarr carrec
Scoped Helper Verbscenter_at diff_at group_mean_center_at lag_at log_at mean_at r1sd_at r2sd_at
Charitable Contributions Panel Datacharitable_contributions
Simulate Data from Correlation Matrixcor2data
Create multivariate data by permutationcorvectors
Lazily select variables from multiple tables in a relational databasedb_lselect
Some Labeled Data in the European Social Survey (Round 9)ess9_labelled
Reorganize a factor after "re-leveling" itfct_reorg
Filter a Data Frame of Citations and Return the Entries as a Characterfilter_refs
French Leader-Years, 1874-2015fra_leaderyears
Get Simulations from a Model Object (with New Data)get_sims
Get a small data frame of the variable label and values.get_var_info gvi
German Dyad-Years, 1816-2020gmy_dyadyears
Set the Only Reproducible Seed That Mattersjenny
Compare Linear Smoother to LOESS Smoother for Your OLS Modellinloess_plot
Make Percentage Label for Proportion and Add Percentage Signmake_perclab
Rescale Vector to Arbitrary Minimum and Maximummake_scale
Map Quiz Wrong Guesses Across Five Intro to IR Coursesmap_quiz
Multiply a Number by 100 and Round It (By Default: 2)mround
Make and annotate a normal distribution with 'ggplot2'normal_dist
Convert the p-value you want to the z-value it actually isp_z
Prepare 'bib2df' Data Frame for Formatting to Various Outputsprepare_refs
Print and Format '.bib' Entries as Referencesprint_refs
Create "peace years" or "spells" by cross-sectional unit, more generallyps_btscs
Create "spells" by cross-sectional unit, even more generallyps_spells
Scale a vector by one standard deviationr1sd
Scale a vector (or vectors) by two standard deviationsr2sd
Bounded Normal (Really: Scaled Beta) Distributionrbnorm
Residual Density Plot for Linear Modelsrd_plot
Reverse code a numeric variablerevcode
Bootstrap a Regression Model, the Bayesian Waysbayesboot
Create "peace years" or "spells" by cross-sectional unitsbtscs
Get a caterpillar plot of random effects from a mixed modelshow_ranef
Simulate from a Multivariate Normal Distributionsmvrnorm
An Incomplete List of My Publications, All of Which You Should Citestevepubs
Strategic Rivalries, 1494-2010strategic_rivalries
The Student-t Distribution (Location-Scale)dst pst qst rst studentt
Convert data frame to an object of class "tibble"tbl_df to_tbl
Legacy functions for Steve's Preferred 'ggplot2' Themes and Assorted Stuffpost_bg theme_steve_font theme_steve_ms theme_steve_web
United States Militarized Interstate Disputes (MIDs)usa_mids
Get Weighted Least Squares of Your OLS Modelwls
Generate Week of the Month from a Datewom