Learn R Programming

⚠️There's a newer version (5.2-3) of this package.Take me there.

Hmisc (version 2.2-0)

Harrell Miscellaneous

Description

The Hmisc library contains many functions useful for data analysis, high-level graphics, utility operations, functions for computing sample size and power, importing datasets, imputing missing values, advanced table making, variable clustering, character string manipulation, conversion of S objects to LaTeX code, and recoding variables.

Copy Link

Version

Install

install.packages('Hmisc')

Monthly Downloads

215,759

Version

2.2-0

License

GPL version 2 or newer

Maintainer

Frank E Harrell Jr

Last Published

March 16th, 2025

Functions in Hmisc (2.2-0)

Cs

Character strings from unquoted names
bpplot

Box-percentile plots
approxExtrap

Linear Extrapolation
impute

Generic Functions and Methods for Imputation
dotchart2

Enhanced Dot Chart
html

Convert an S object to HTML
Overview

Overview of Hmisc Library
Misc

Miscellaneous Functions
histbackback

Back to Back Histograms
bootkm

Bootstrap Kaplan-Meier Estimates
first.word

First Word in a String or Expression
abs.error.pred

Indexes of Absolute Prediction Error for Linear Models
event.chart

Flexible Event Chart for Time-to-Event Data
binconf

Confidence Intervals for Binomial Probabilities
mtitle

Margin Titles
Hmisc-internal

Internal Hmisc functions
gbayes

Gaussian Bayesian Posterior and Predictive Distributions
cpower

Power of Cox/log-rank Two-Sample Test
deff

Design Effect and Intra-cluster Correlation
dataRep

Representativeness of Observations in a Data Set
hoeffd

Matrix of Hoeffding's D Statistics
bystats

Statistics by Categories
na.detail.response

Detailed Response Variable Information
na.delete

Row-wise Deletion na.action
describe

Concise Statistical Description of a Vector, Matrix, Data Frame, or Formula
hdquantile

Harrell-Davis Distribution-Free Quantile Estimator
ciapower

Power of Interaction Test for Exponential Survival
eip

Edit In Place
rlegend

Special Version of legend for R
na.keep

Do-nothing na.action
all.is.numeric

Check if All Elements in Character Vector are Numeric
list.tree

Pretty-print the Structure of a Data Object
aregImpute

Multiple Imputation using Additive Regression, Bootstrapping, and Predictive Mean Matching
minor.tick

Minor Tick Marks
rcspline.eval

Restricted Cubic Spline Design Matrix
pstamp

Date/Time/Directory Stamp the Current Plot
plsmo

Plot smoothed estimates
panel.bpplot

Box-Percentile Panel Function for Trellis
cut2

Cut a Numeric Variable into Intervals
format.df

Format a Data Frame or Matrix for LaTeX or HTML
popower

Power and Sample Size for Ordinal Response
plotCorrPrecision

Plot Precision of Estimate of Pearson Correlation Coefficient
ps.slide

Postscript and Adobe PDF Setup for 35mm Slides and Other Formats
sedit

Character String Editing and Miscellaneous Character Handling Functions
Lag

Lag a Numeric, Character, or Factor Vector
store

Store an Object Permanently
errbar

Plot Error Bars
summarize

Summarize Scalars or Matrices by Cross-Classification
spower

Simulate Power of 2-Sample Test for Survival under Complex Conditions
labcurve

Label Curves, Make Keys, and Interactively Draw Points and Curves
show.pch

Display Colors, Plotting Symbols, and Symbol Numeric Equivalents
rcorrp.cens

Rank Correlation for Paired Predictors with a Censored Response
src

Source a File from the Current Working Directory
solvet

solve Function with tol argument
ecdf

Empirical Cumulative Distribution Plot
rcspline.plot

Plot Restricted Cubic Spline Function
sys

Run Unix or Dos Depending on System
pc1

First Principal Component
translate

Translate Vector or Matrix of Text Strings
rMultinom

Generate Multinomial Random Variables with Varying Probabilities
samplesize.bin

Sample Size for 2-sample Binomial
prnz

Print and Object with its Name
xYplot

xyplot and dotplot with Matrix Variables to Plot Error Bars and Bands
event.history

Produces event.history graph for survival data
xy.group

Mean x vs. function of y in groups of x
mgp.axis

Draw Axes With Side-Specific mgp Parameters
hist.data.frame

Histograms for Variables in a Data Frame
summary.formula

Summarize Data for Making Tables and Plots
bpower

Power and Sample Size for Two-Sample Binomial Test
print.char.matrix

Function to print a matrix with stacked cells
reorder.factor

Reorder Factor Levels
rcspline.restate

Re-state Restricted Cubic Spline Function
latex

Convert an S object to LaTeX, and Related Utilities
label

Label Attribute of an Object
sas.get

Convert a SAS Dataset to an S Data Frame
score.binary

Score a Series of Binary Variables
somers2

Somers' Dxy Rank Correlation
rcorr.cens

Rank Correlation for Censored Data
symbol.freq

Graphic Representation of a Frequency Table
data.frame.create.modify.check

Tips for Creating, Modifying, and Checking Data Frames
sasxport.get

Enhanced Importing of SAS Transport Files using read.xport
reShape

Reshape Matrices and Serial Data
spss.get

Enhanced Importing of SPSS Files
t.test.cluster

t-test for Clustered Data
units

Units Attribute of a Vector
wtd.mean

Weighted Statistical Estimates
varclus

Variable Clustering
scat1d

One-Dimensional Scatter Diagram, Spike Histogram, or Density
transcan

Transformations/Imputations using Canonical Variates
upData

Update a Data Frame or Cleanup a Data Frame after Importing
.in.

Find Matching (or Non-Matching) Elements
getHdata

Download and Install Datasets for Hmisc, Design, and Statistical Modeling
interaction

Compute the Interaction of Several Factors
ldBands

Group Sequential Boundaries using the Lan-DeMets Approach
rm.boot

Bootstrap Repeated Measurements Model
smean.sd

Compute Summary Statistics on a Vector
contents

Metadata for a Data Frame
find.matches

Find Close Matches
rcorr

Matrix of Correlations and Generalized Spearman Rank Correlation
transace

Additive Regression and Transformations using ace or avas