Hmisc: Harrell Miscellaneous

雑多なお役立ち関数群

> library(Hmisc)
Loading required package: lattice
Loading required package: survival
Loading required package: Formula

Attaching package: 'Hmisc'

The following object is masked from 'package:ape':

    zoom

The following object is masked from 'package:ggtree':

    mask

The following objects are masked from 'package:raster':

    mask, zoom

The following objects are masked from 'package:base':

    format.pval, round.POSIXt, trunc.POSIXt, units

バージョン: 3.17.1


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

list.tree

リストクラスのオブジェクトの出力を整形する

> data("ability.cov")
> list.tree(ability.cov)
 ability.cov = list 3 (1944 bytes)
.  cov = double 36= named array 6 X 6= 24.641 5.991 33.52 ...
.  center = double 6= 0 0 0 0 0 0
.  n.obs = double 1= 112