Hmisc v3.17-4

0

Monthly downloads

0th

Percentile

Harrell Miscellaneous

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

Readme

Hmisc

Harrell Miscellaneous

Current Goals

Web Sites

To Do

  • Consider using the haven package for importing SAS, Stata, and SPSS files; haven stores labels as the label attribute of each variable as does Hmisc; it converts date and time variables automatically and allows one to specify a format catalog along with the primary dataset
  • See if the readstata13 package has advantages over the foreign package for Stata file import
  • Consider creating xl.get using the readxl package to read .xls and .xlsx Excel files
  • In impute.transcan, sense if a variable in data is not a factor whereas it was treated as a factor during aregImpute; it should be converted to factor before the line v[sub] <- ... levels(as.integer...)) is run

Functions in Hmisc

Name Description
abs.error.pred Indexes of Absolute Prediction Error for Linear Models
all.is.numeric Check if All Elements in Character Vector are Numeric
bootkm Bootstrap Kaplan-Meier Estimates
areg Additive Regression with Optimal Transformations on Both Sides using Canonical Variates
bpower Power and Sample Size for Two-Sample Binomial Test
biVar Bivariate Summaries Computed Separately by a Series of Predictors
aregImpute Multiple Imputation using Additive Regression, Bootstrapping, and Predictive Mean Matching
addMarginal Add Marginal Observations
approxExtrap Linear Extrapolation
binconf Confidence Intervals for Binomial Probabilities
cnvrt.coords Convert between the 5 different coordinate sytems on a graphical device
Cs Character strings from unquoted names
consolidate Element Merging
cpower Power of Cox/log-rank Two-Sample Test
ciapower Power of Interaction Test for Exponential Survival
capitalize capitalize the first letter of a string
csv.get Read Comma-Separated Text Data Files
bystats Statistics by Categories
contents Metadata for a Data Frame
bpplot Box-percentile plots
deff Design Effect and Intra-cluster Correlation
dataRep Representativeness of Observations in a Data Set
describe Concise Statistical Description of a Vector, Matrix, Data Frame, or Formula
data.frame.create.modify.check Tips for Creating, Modifying, and Checking Data Frames
cut2 Cut a Numeric Variable into Intervals
discrete Discrete Vector tools
dotchart2 Enhanced Dot Chart
curveRep Representative Curves
first.word First Word in a String or Expression
mhgr Miscellaneous Functions for Epidemiology
errbar Plot Error Bars
escapeRegex Escapes any characters that would have special meaning in a reqular expression.
event.convert Event Conversion for Time-to-Event Data
event.chart Flexible Event Chart for Time-to-Event Data
dotchart3 Enhanced Version of dotchart Function
Ecdf Empirical Cumulative Distribution Plot
find.matches Find Close Matches
hist.data.frame Histograms for Variables in a Data Frame
equalBins Multicolumn Formating
event.history Produces event.history graph for survival data
colorFacet Miscellaneous ggplot2 and grid Helper Functions
getHdata Download and Install Datasets for Hmisc, rms, and Statistical Modeling
ffCompress Transform Data Frame Into a Compact ff Object
format.df Format a Data Frame or Matrix for LaTeX or HTML
histbackback Back to Back Histograms
gbayes Gaussian Bayesian Posterior and Predictive Distributions
hdquantile Harrell-Davis Distribution-Free Quantile Estimator
getRs Interact with github rscripts Project
format.pval Format P Values
getZip Open a Zip File From a URL.
hoeffd Matrix of Hoeffding's D Statistics
Hmisc-internal Internal Hmisc functions
html Convert an S object to HTML
inc-dec Increment and Decrement
impute Generic Functions and Methods for Imputation
label Label Attribute of an Object
latexTabular Convert a Data Frame or Matrix to a LaTeX Tabular
latexDotchart Enhanced Dot Chart for LaTeX Picture Environment with epic
Merge Merge Multiple Data Frames or Data Tables
makeNstr creates a string that is a repeat of a substring
list.tree Pretty-print the Structure of a Data Object
mChoice Methods for Storing and Analyzing Multiple Choice Variables
Lag Lag a Numeric, Character, or Factor Vector
na.detail.response Detailed Response Variable Information
%nin% Find Matching (or Non-Matching) Elements
knitrSet knitr Setup
minor.tick Minor Tick Marks
mgp.axis Draw Axes With Side-Specific mgp Parameters
latex Convert an S object to LaTeX, and Related Utilities
latexTherm Create LaTeX Thermometers and Colored Needles
labcurve Label Curves, Make Keys, and Interactively Draw Points and Curves
mApply Apply a Function to Rows of a Matrix or Vector
nstr Creates a string of arbitry length
pc1 First Principal Component
num.intercepts Extract number of intercepts
partition Patitions an object into different sets
popower Power and Sample Size for Ordinal Response
plotCorrPrecision Plot Precision of Estimate of Pearson Correlation Coefficient
print.char.matrix Function to print a matrix with stacked cells
plsmo Plot smoothed estimates
legendfunctions Legend Creation Functions
mdb.get Read Tables in a Microsoft Access Database
na.keep Do-nothing na.action
mtitle Margin Titles
multLines Plot Multiple Lines
prnz Print and Object with its Name
rcspline.restate Re-state Restricted Cubic Spline Function
rcspline.eval Restricted Cubic Spline Design Matrix
rcorr Matrix of Correlations and P-values
rcorr.cens Rank Correlation for Censored Data
na.delete Row-wise Deletion na.action
Misc Miscellaneous Functions
nobsY Compute Number of Observations for Left Hand Side of Formula
rMultinom Generate Multinomial Random Variables with Varying Probabilities
sedit Character String Editing and Miscellaneous Character Handling Functions
rlegend Special Version of legend for R
sasxport.get Enhanced Importing of SAS Transport Files using read.xport
score.binary Score a Series of Binary Variables
Save Faciliate Use of save and load to Remote Directories
panel.bpplot Box-Percentile Panel Function for Trellis
print.char.list prints a list of lists in a visually readable format.
samplesize.bin Sample Size for 2-sample Binomial
show.pch Display Colors, Plotting Symbols, and Symbol Numeric Equivalents
rcspline.plot Plot Restricted Cubic Spline Function
pstamp Date/Time/Directory Stamp the Current Plot
prselect Selectively Print Lines of a Text Vector
redun Redundancy Analysis
reShape Reshape Matrices and Serial Data
stat_plsmo Add a lowess smoother without counfidence bands.
spss.get Enhanced Importing of SPSS Files
somers2 Somers' Dxy Rank Correlation
smean.sd Compute Summary Statistics on a Vector
simplifyDims List Simplification
spower Simulate Power of 2-Sample Test for Survival under Complex Conditions
stata.get Enhanced Importing of STATA Files
scat1d One-Dimensional Scatter Diagram, Spike Histogram, or Density
rm.boot Bootstrap Repeated Measurements Model
showPsfrag Display image from psfrag LaTeX strings
src Source a File from the Current Working Directory
solvet solve Function with tol argument
stringDims String Dimentions
summaryP Multi-way Summary of Proportions
subplot Embed a new plot within an existing plot
summaryRc Graphical Summarization of Continuous Variables Against a Response
summarize Summarize Scalars or Matrices by Cross-Classification
string.bounding.box Determine Dimensions of Strings
string.break.line Break a String into Many Lines at Newlines
summaryS Summarize Multiple Response Variables and Make Multipanel Scatter or Dot Plot
summary.formula Summarize Data for Making Tables and Plots
summaryM Summarize Mixed Data Types vs. Groups
tex function for use in graphs that are used with the psfrag package in LaTeX
sys Run Unix or Dos Depending on System
transace Additive Regression and Transformations using ace or avas
symbol.freq Graphic Representation of a Frequency Table
translate Translate Vector or Matrix of Text Strings
transcan Transformations/Imputations using Canonical Variates
t.test.cluster t-test for Clustered Data
trunc.POSIXt return the floor, ceiling, or rounded value of date or time to specified unit.
tabulr Interface to Tabular Function
units Units Attribute of a Vector
wtd.stats Weighted Statistical Estimates
xYplot xyplot and dotplot with Matrix Variables to Plot Error Bars and Bands
upFirst Change First Letters to Upper Case
xtfrm.labelled Auxiliary Function Method for Sorting and Ranking
valueTags Store Discriptive Information About an Object
xy.group Mean x vs. function of y in groups of x
yearDays Get Number of Days in Year or Month
ynbind Combine Variables in a Matrix
upData Update a Data Frame or Cleanup a Data Frame after Importing
varclus Variable Clustering
No Results!

Last month downloads

Details

Date 2016-05-02
License GPL (>= 2)
LazyLoad Yes
URL http://biostat.mc.vanderbilt.edu/Hmisc, https://github.com/harrelfe/Hmisc
NeedsCompilation yes
Packaged 2016-05-02 14:10:51 UTC; harrelfe
Repository CRAN
Date/Publication 2016-05-02 17:28:19

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/Hmisc)](http://www.rdocumentation.org/packages/Hmisc)