Learn R Programming

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

Hmisc (version 3.0-1)

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

3.0-1

License

GPL version 2 or newer

Maintainer

Frank E Harrell Jr

Last Published

March 16th, 2025

Functions in Hmisc (3.0-1)

deff

Design Effect and Intra-cluster Correlation
csv.get

Read Comma-Separated Text Data Files
impute

Generic Functions and Methods for Imputation
latex

Convert an S object to LaTeX, and Related Utilities
sasxport.get

Enhanced Importing of SAS Transport Files using read.xport
eip

Edit In Place
hist.data.frame

Histograms for Variables in a Data Frame
transace

Additive Regression and Transformations using ace or avas
Hmisc-internal

Internal Hmisc functions
bystats

Statistics by Categories
approxExtrap

Linear Extrapolation
.in.

Find Matching (or Non-Matching) Elements
all.is.numeric

Check if All Elements in Character Vector are Numeric
bpplot

Box-percentile plots
contents

Metadata for a Data Frame
hdquantile

Harrell-Davis Distribution-Free Quantile Estimator
hoeffd

Matrix of Hoeffding's D Statistics
symbol.freq

Graphic Representation of a Frequency Table
ciapower

Power of Interaction Test for Exponential Survival
bpower

Power and Sample Size for Two-Sample Binomial Test
Misc

Miscellaneous Functions
cut2

Cut a Numeric Variable into Intervals
Lag

Lag a Numeric, Character, or Factor Vector
binconf

Confidence Intervals for Binomial Probabilities
dropUnusedLevels

Create Temporary Factor Subsetting Function
reShape

Reshape Matrices and Serial Data
getHdata

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

Convert an S object to HTML
first.word

First Word in a String or Expression
smean.sd

Compute Summary Statistics on a Vector
event.history

Produces event.history graph for survival data
describe

Concise Statistical Description of a Vector, Matrix, Data Frame, or Formula
abs.error.pred

Indexes of Absolute Prediction Error for Linear Models
dataRep

Representativeness of Observations in a Data Set
find.matches

Find Close Matches
rcspline.plot

Plot Restricted Cubic Spline Function
scat1d

One-Dimensional Scatter Diagram, Spike Histogram, or Density
na.keep

Do-nothing na.action
list.tree

Pretty-print the Structure of a Data Object
dotchart2

Enhanced Dot Chart
somers2

Somers' Dxy Rank Correlation
prnz

Print and Object with its Name
mgp.axis

Draw Axes With Side-Specific mgp Parameters
spss.get

Enhanced Importing of SPSS Files
bootkm

Bootstrap Kaplan-Meier Estimates
popower

Power and Sample Size for Ordinal Response
print.char.matrix

Function to print a matrix with stacked cells
plotCorrPrecision

Plot Precision of Estimate of Pearson Correlation Coefficient
panel.bpplot

Box-Percentile Panel Function for Trellis
sedit

Character String Editing and Miscellaneous Character Handling Functions
pc1

First Principal Component
Cs

Character strings from unquoted names
src

Source a File from the Current Working Directory
labcurve

Label Curves, Make Keys, and Interactively Draw Points and Curves
minor.tick

Minor Tick Marks
spower

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

Translate Vector or Matrix of Text Strings
reorder.factor

Reorder Factor Levels
gbayes

Gaussian Bayesian Posterior and Predictive Distributions
aregImpute

Multiple Imputation using Additive Regression, Bootstrapping, and Predictive Mean Matching
rcspline.eval

Restricted Cubic Spline Design Matrix
rcspline.restate

Re-state Restricted Cubic Spline Function
summary.formula

Summarize Data for Making Tables and Plots
Overview

Overview of Hmisc Library
pstamp

Date/Time/Directory Stamp the Current Plot
rm.boot

Bootstrap Repeated Measurements Model
histbackback

Back to Back Histograms
cnvrt.coords

Convert between the 4 different coordinate sytems on a graphical device
t.test.cluster

t-test for Clustered Data
sas.get

Convert a SAS Dataset to an S Data Frame
varclus

Variable Clustering
cpower

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

xyplot and dotplot with Matrix Variables to Plot Error Bars and Bands
rcorr.cens

Rank Correlation for Censored Data
na.delete

Row-wise Deletion na.action
event.chart

Flexible Event Chart for Time-to-Event Data
na.detail.response

Detailed Response Variable Information
rMultinom

Generate Multinomial Random Variables with Varying Probabilities
ldBands

Group Sequential Boundaries using the Lan-DeMets Approach
samplesize.bin

Sample Size for 2-sample Binomial
xy.group

Mean x vs. function of y in groups of x
mtitle

Margin Titles
rcorr

Matrix of Correlations and Generalized Spearman Rank Correlation
show.pch

Display Colors, Plotting Symbols, and Symbol Numeric Equivalents
solvet

solve Function with tol argument
Save

Faciliate Use of save and load to Remote Directories
score.binary

Score a Series of Binary Variables
sys

Run Unix or Dos Depending on System
ecdf

Empirical Cumulative Distribution Plot
%nin%

Find Matching (or Non-Matching) Elements
store

Store an Object Permanently
rlegend

Special Version of legend for R
transcan

Transformations/Imputations using Canonical Variates
summarize

Summarize Scalars or Matrices by Cross-Classification
data.frame.create.modify.check

Tips for Creating, Modifying, and Checking Data Frames
errbar

Plot Error Bars
mApply

Apply a Function to Rows of a Matrix or Vector
stata.get

Enhanced Importing of STATA Files
format.df

Format a Data Frame or Matrix for LaTeX or HTML
subplot

Embed a new plot within an existing plot
plsmo

Plot smoothed estimates
units

Units Attribute of a Vector
wtd.mean

Weighted Statistical Estimates
ps.slide

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

Label Attribute of an Object
rcorrp.cens

Rank Correlation for Paired Predictors with a Censored Response
upData

Update a Data Frame or Cleanup a Data Frame after Importing
valueTags

Store Discriptive Information About an Object
getZip

Open a Zip File From a URL.