Questions tagged [comparegroups]
6 questions
1
vote
1 answer
How can one create a single table from multiple datasets?
I'm trying to create a descriptive table by treatment group. For my analysis, I have 3 different partitions of the data (because I'm running 3 separate analyses) from a complete data set, but I only have one statistic from each subset that I am…

Ryan
- 77
- 7
1
vote
1 answer
dot stored in call to update formula leads to scoping issue
I am relying on the compareGroups package to do some comparisons after a pipe-chain. When subsetting the final results, the call to [ triggers a call to update (both in their bespoke compareGroups-versions) which leads to a scoping problem.
Try…

coffeinjunky
- 11,254
- 39
- 57
0
votes
0 answers
How to loop over comparegoup function in R
I have a large dataset and I want to apply comparegroups function in R. The dataset has number of grouping variables that I want to compare other variables on it; I wanted to loop over these grouping variables. the function is not accepting the…

Ahmed Ramadan
- 3
- 3
0
votes
1 answer
Are the confidence intervals in compareGroups R package accurate?
I've been using R package "compareGroups" for a while now.
But I've been curious and playing with it and I don't understand how compareGroups computes confidence intervals.
data <- data.frame(a = c(1:20, 1:20), b = c(rep("A",20), rep("B",20)))
I…

PHNM
- 25
- 6
0
votes
1 answer
CompareGroups package in R
I have a dataset with 100 columns and 4 groups.
I want to apply compareGroups function to have descriptive and inferential statistics for my data.
However; compareGroups function is taking a formula as follows: compareGroups(Grouping…

Ahmed Ramadan
- 3
- 3
0
votes
2 answers
Why aren't tables from compareGroups displaying properly in Rmarkdown PDF?
I have the following code:
---
title: "test"
author: "author"
date: "2020/11/17"
output: pdf_document
always_allow_html: true
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r…

Pete
- 321
- 4
- 16