hmisc Questions

4

Solved

I am struggling with variable labels of data.frame columns. Say I have the following data frame (part of much larger data frame): data <- data.frame(age = c(21, 30, 25, 41, 29, 33), sex = facto...
Indira asked 7/12, 2014 at 20:40

3

Solved

I am using cut to divide my data into bins, which gives the resulting bin as something like (x1,x2]. Can anyone tell me how I might make a new column that expresses these bins as the midpoint of th...
Feminine asked 10/3, 2014 at 21:58

3

I'm having trouble loading and running the Hmisc package. When installing it, I get the following error; library(Hmisc) Loading required package: lattice Loading required package: survival Loadin...
Unfleshly asked 20/12, 2019 at 3:59

3

Solved

I want to create a data frame using describe() function. Dataset under consideration is iris. The data frame should look like this: Variable n missing unique Info Mean 0.05 0.1 0.25 0.5 0.75 0.9 ...
Macfarlane asked 19/6, 2016 at 14:55

3

Solved

I'm using the cut function to split my data in equal bins, it does the job but I'm not happy with the way it returns the values. What I need is the center of the bin not the upper and lower ends. I...
Brawny asked 6/5, 2011 at 19:6

1

Solved

I am using r 3.3.3, dplyr 0.7.4, and Hmisc 4.1-1. I noticed that the order I load packages effects whether or not a dplyr::summaries function wold work or not. I understand that loading packages in...
Fourlegged asked 20/3, 2018 at 19:36

2

Solved

I'm trying to have column headings and the horizontal line underneath the headings separated by the groups. When I do the following it works, library(Hmisc) data(mtcars) latex(mtcars, file ='', c...
Breach asked 11/11, 2013 at 0:1

2

When I use library(Hmisc) I get the following error Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called 'stringi' Error: package 'ggp...
Spirituous asked 22/6, 2015 at 14:48

1

Solved

I'm using a function smean.cl.normal from Hmisc package that returns a vector with 3 values: the mean and the lower and upper CI. When I use it on a data.table with 2 groups, I obtain 2 columns and...
Prinz asked 10/2, 2017 at 16:3

1

Solved

I am unsure as to why the error bars generated by the mean_sdl function (from Hmisc) in ggplot2 are significantly broader than the error bars generated manually and plotting mean + sd and mean - sd...
Sha asked 25/1, 2017 at 9:48

3

Solved

First I will tell you what I'm attempting to do big picture in case I'm going about it wrong. I have a nested table that I'd like to out put as a LaTeX table within RStudio using knitr. I am fine u...
Tartuffe asked 13/9, 2012 at 1:5

3

Solved

library(ggplot2) data(diamonds) str(diamonds) ## 'data.frame': 53940 obs. of 10 variables: ## $ carat : num 0.23 0.21 0.23 0.29 0.31 0.24 0.24 0.26 0.22 0.23 ... ## $ cut : Ord.factor w/ 5 levels "...
Totaquine asked 28/6, 2015 at 13:52

2

Solved

I have been trying to learn to use the summary()-function from the Hmisc-package to generate crosstables that include chisquared tests. With help from this board I'm almost there. I just can't figu...
Toothbrush asked 14/5, 2013 at 9:48

1

Solved

Using R-studio and Knitr to create a pdf I am unable to get the tables centered horisontally. As seen from the example below, it works fine using xtable(), but the latex()-tabels are all left-align...
Eartha asked 7/5, 2013 at 7:43

1

Solved

So I am trying to see how close the sample size calculations (for two sample independent proportions with unequal samples sizes) are between proc power in SAS and some sample size functions in r. I...
Attain asked 13/3, 2013 at 20:24
1

© 2022 - 2024 — McMap. All rights reserved.