Package: dvmisc 1.1.4

Dane R. Van Domelen

dvmisc: Convenience Functions, Moving Window Statistics, and Graphics

Contains functions that do something convenient (e.g. create BMI categories), functions for calculating moving-window statistics efficiently, and functions for generating various figures (e.g. histograms with fitted probability mass/density function).

Authors:Dane R. Van Domelen

dvmisc_1.1.4.tar.gz
dvmisc_1.1.4.zip(r-4.7)dvmisc_1.1.4.zip(r-4.6)dvmisc_1.1.4.zip(r-4.5)
dvmisc_1.1.4.tgz(r-4.6-x86_64)dvmisc_1.1.4.tgz(r-4.6-arm64)dvmisc_1.1.4.tgz(r-4.5-x86_64)dvmisc_1.1.4.tgz(r-4.5-arm64)
dvmisc_1.1.4.tar.gz(r-4.7-arm64)dvmisc_1.1.4.tar.gz(r-4.7-x86_64)dvmisc_1.1.4.tar.gz(r-4.6-arm64)dvmisc_1.1.4.tar.gz(r-4.6-x86_64)
dvmisc_1.1.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
dvmisc/json (API)

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

Bug tracker:https://github.com/cranhaven/cranhaven.r-universe.dev/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

archivedpackagesr-universecpp

5.17 score 5 stars 6 packages 164 scripts 454 downloads 57 exports 71 dependencies

Last updated from:3c857c0100 (on package/dvmisc). Checks:13 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK205
linux-devel-x86_64OK211
source / vignettesOK295
linux-release-arm64OK204
linux-release-x86_64OK202
macos-release-arm64OK157
macos-release-x86_64OK373
macos-oldrel-arm64OK156
macos-oldrel-x86_64OK243
windows-develOK193
windows-releaseOK190
windows-oldrelOK204
wasm-releaseOK151

Exports:bmi3bmi4clean_glmcleancutcreate_qgroupscreate_qgroups_svycut_decreasingdots_barsexpand_gridgammaregget_mseheadtailhistoinsideinterval_groupsiteratelist_overridelogit_problognormalreglogodds_graphmax_nmean_imeans_graphmin_nmle_gammamle_gamma_lnormmle_lnormmle_lnorm_lnormmoving_meann_2t_equaln_2t_unequalodds_probplot_llpooled_varpower_2t_equalpower_2t_unequalprob_logitprob_oddsquant_groupsquant_groups_svyreverse_cutsliding_corsliding_covsum_isumsimtrimtruerangewhich_max_imwhich_max_ivwhich_max_nmwhich_max_nvwhich_min_imwhich_min_ivwhich_min_nmwhich_min_nvwhich.max2which.min2

Dependencies:base64encbslibcachemclicpp11cubaturedata.tableDBIdigestdplyrevaluatefarverfastmapfontawesomefsgenericsggplot2gluegtablehighrhtmltoolsisobandjquerylibjsonlitekableExtraknitrlabelinglatticelifecyclemagrittrMASSMatrixmemoisemimeminqamitoolsmvtnormnumDerivpillarpkgconfigpracmaR6rappdirsrbenchmarkRColorBrewerRcppRcppArmadillorlangrmarkdownrstudioapiS7sassscalesstringistringrsurveysurvivalsvglitesystemfontstabtextshapingtibbletidyselecttinytexutf8vctrsviridisLitewithrxfunxml2yaml

Convenience Functions, Moving Window Statistics, and Graphics

Rendered fromdvmisc.Rmdusingknitr::rmarkdownon Jun 11 2026.

Last update: 2026-06-11
Started: 2026-06-11

Readme and manuals

Help Manual

Help pageTopics
Convert Continuous BMI Values into 3-Level Factorbmi3
Convert Continuous BMI Values into 4-Level Factorbmi4
Create a Clean Summary Table from a glm Objectclean_glm
Convert Numeric to Factor with Convenient Interfacecleancut
Create Quantile Groupscreate_qgroups
Create Quantile Groups (Complex Survey Data)create_qgroups_svy
Cut with Decreasing Factor Levelscut_decreasing
Plot Points +/- Error Barsdots_bars
Convenience Functions, Moving Window Statistics, and Graphicsdvmisc-package dvmisc
Similar to expand.grid but with Sequences Reversed and Ability to Treat Variables as Setsexpand_grid
Constant-Scale Gamma Model for Y vs. Covariates with Y Potentially Subject to Multiplicative Lognormal Errorsgammareg
Extract Mean Squared Error (MSE) from Fitted Regression Modelget_mse
Return the First and Last Part of an Objectheadtail
Histogram with Added Optionshisto
Check Whether Numeric Value Falls Inside Two Other Numeric Valuesinside
Split Continuous Variable into Equal-Width Groupsinterval_groups
Iterate Function Over All Combinations of User-Specified Inputs, Potentially Multiple Timesiterate
Add Elements of Second List to First List, Replacing Elements with Same Namelist_override
Convert Logit to Probabilitylogit_prob
Linear Regression of log(Y) vs. Covariates with Y Potentially Subject to Multiplicative Lognormal Errorslognormalreg
Graph Log-Odds of Binary Variable Across A Grouping Variablelogodds_graph
Maximum of Numeric Valuesmax_n
Mean of Integer Valuesmean_i
Graph Means Across a Grouping Variablemeans_graph
Minimum of Numeric Valuesmin_n
Maximum Likelihood Estimation for X[1], ..., X[n] ~ Gamma(alpha, beta)mle_gamma
Maximum Likelihood Estimation for X[1], ..., X[n] ~ Gamma(alpha, beta) Lognormal(mu, sigsq)mle_gamma_lnorm
Maximum Likelihood Estimation for X[1], ..., X[n] ~ Lognormal(mu, sigsq)mle_lnorm
Maximum Likelihood Estimation for X[1], ..., X[n] ~ Lognormal(mu1, sigsq1) Lognormal(mu2, sigsq2)mle_lnorm_lnorm
Moving Averagesmoving_mean
Calculate Per-Group Sample Size for Two-Sample Equal Variance T-Testn_2t_equal
Calculate Per-Group Sample Size for Two-Sample Unequal Variance T-Testn_2t_unequal
Convert Odds to Probabilityodds_prob
Plot Log-Likelihood vs. Values of One Parameterplot_ll
Pooled Sample Variancepooled_var
Calculate Power for Two-Sample Equal Variance T-Testpower_2t_equal
Calculate Power for Two-Sample Unequal Variance T-Testpower_2t_unequal
Convert Probability to Logitprob_logit
Convert Probability to Oddsprob_odds
Split Continuous Variable into Quantile Groupsquant_groups
Split Continuous Variable into Quantile Groups (Survey Version)quant_groups_svy
Reverse Cutreverse_cut
Moving Correlations as Short Vector Slides Across Long Vectorsliding_cor
Moving Covariance as Short Vector Slides Across Long Vectorsliding_cov
Sum of Integer Valuessum_i
Summarize Simulation Resultssumsim
Trim Tail Values off of a Vectortrim
Range of a Vector (Not Min/Max!)truerange
Return (Row, Column) Index of (First) Maximum of an Integer Matrixwhich_max_im
Return Index of (First) Maximum of an Integer Vectorwhich_max_iv
Return (Row, Column) Index of (First) Maximum of a Numeric Matrixwhich_max_nm
Return Index of (First) Maximum of a Numeric Vectorwhich_max_nv
Return (Row, Column) Index of (First) Minimum of an Integer Matrixwhich_min_im
Return Index of (First) Minimum of an Integer Vectorwhich_min_iv
Return (Row, Column) Index of (First) Minimum of a Numeric Matrixwhich_min_nm
Return Index of (First) Minimum of a Numeric Vectorwhich_min_nv
Return Index of (First) Maximum of a Vectorwhich.max2
Return Index of (First) Minimum of a Vectorwhich.min2