Questions tagged [hmisc]

Hmisc is an R package of miscellaneous utility functions.

Hmisc is an package of miscellaneous functions by Frank Harrell. It contains many functions useful for , ting, utility operations, functions for computing and power, importing datasets, imputing , advanced table making, , manipulation, conversion of R objects to code, and recoding variables.

Repositories

Other resources

Related tags

216 questions
0
votes
2 answers

Adding Error Bars in R with ggplot

I would like to make a plot in R plotting two categorical variables (treat) by LWP. I would like to change the color of the dots (the fill) to correspond with the variable rootpatH (one dot in each treatment). I would also like to add a notation if…
user1977802
  • 313
  • 6
  • 10
  • 18
0
votes
1 answer

events.chart y lab text size

Hi I have the following events.chart from the Hmisc package. event.chart(events, subset.c = c('D2BMET','T2Fail','Cens','zero'), x.lab = 'Progression Time for Breast Cancer Patients (months)', y.lab = 'Subjects (sorted by time to 1st…
crazian
  • 649
  • 4
  • 12
  • 24
-1
votes
1 answer

Binning column and getting corresponding values from other column in R

I have two columns of paired values in a data frame, I want to bin the data in one column using the cut2 function from the Hmisc package so that there are at least say 25 data points in each bin. I however need the corresponding values from the…
WoA
  • 173
  • 2
  • 2
  • 12
-1
votes
1 answer

replicate the result of `mice()` using library(Hmisc) in R

Below, I've used library(mice) to multiply impute 5 datasets from my data.frame popmis. Then, I performed my desired analysis with() all those 5 imputed datasets and finally pool() across those analyses. Question: Is it possible to replicate the…
rnorouzian
  • 7,397
  • 5
  • 27
  • 72
-1
votes
1 answer

Hmisc::latex with sapply and htest class produce many tables

I can't get table with Hmisc::latex and sapply function. latex return many tables. I would like to use a Hmisc::latex because it more flexible configurable. Steps to reproduce problem: library(xtable) library(Hmisc) library(nortest) set.seed(1) x <-…
Artem Klevtsov
  • 9,193
  • 6
  • 52
  • 57
-3
votes
1 answer

I want to imputation of missing value in data frame which have many attributes how about loop if library(Hmisc) used in R?

My code is: df <- read.csv("data") summary(df) library(Hmisc) imp_a <- impute(df$a, mean) df$a <- imp_a imp_b <- impute(df$b, mean) df$b <- imp_b If attribute not only a and b how too loop 1000 attributes? Thank you…
1 2 3
14
15