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...
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...
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...
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 ...
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...
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...
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...
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...
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...
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...
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 "...
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...
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.