Questions tagged [desctools]

An R package: Tools for Descriptive Statistics.

A collection of miscellaneous basic statistic functions and convenience wrappers for efficiently describing data. The author's intention was to create a toolbox, which facilitates the (notoriously time consuming) first descriptive tasks in data analysis, consisting of calculating descriptive statistics, drawing graphical summaries and reporting the results.

Links:

  1. CRAN: DescTools

  2. Pdf

  3. RDocumentation

61 questions
1
vote
1 answer

Why do the "DescTools" & "e1071" packages cause an error when trying to view lists containing dist objects?

I have the following dataframe, 'A'. I calculate a distance matrix 'B' from it. Then I add that distance matrix 'B' to a list 'C' and view it. A <- data.frame(x = c(1:10), y = c(21:30)) B <- dist(A) C <- list(B) View(C) So far so…
bkl
  • 13
  • 4
1
vote
0 answers

R installing package 'DescTools' - "gfortran no file or directory" error

I've tried to download the package "DescTools" and I'm getting an error message while installing the dependencies ('lmom', 'gld') which I cannot solve myself. It seems like "gfortran" is the problem, I've googled it but didn't get what to do. I've…
LeCV
  • 11
  • 2
1
vote
1 answer

How to add decimals to correlation coefficients in DescTools?

I'm trying the DescTools package with the standard d.pizza datafile. When I try to do a bivariate analysis on the data it gives 0's for the correlation coefficients and I don't know how to change that. Desc(price ~ delivery_min, d.pizza) price ~…
Anonymous
  • 11
  • 2
1
vote
0 answers

R: Winsorize one column per year for panel data

I would like to winsorize the column "Return". However, I want to winsorize per Year. My data looks like this: structure(list(Name = c("A", "A", "A", "A", "A", "A", "B", "B", "B", "B", "B", "B", "C", "C", "C", "C", "C", "C"), Date = c("01.09.2018",…
remo
  • 365
  • 1
  • 10
1
vote
1 answer

PercTable {DescTools} - prevent output text wrapping

My goal is to export PercTable output in a clean / HTML like format as JPG or CSV import into a presentation. I get the "raw" table I want with this code: Library(DescTable) PercTable(syn_gender ~ recommend, data=dfXtab, rfrq="010",…
DP-WA
  • 31
  • 2
1
vote
1 answer

Mode using DescTools in R

I am using R and I've learned to calculate the Mode using CodeAcademy's curriculum. Basically CodeAcademy recommended using DescTools (which is an R Package that I've installed on my computer). The Mode should return the most commonly occurring…
ClaireLandis
  • 325
  • 3
  • 18
1
vote
1 answer

Changing the Names in a Column to the most frequent Names per Group

I'm looking for a way to to calculate the most frequent name per group, and then change all names in this group to the most frequent name, or create a new column with the most frequent name. In the dataset, there may be ties in the frequent names,…
statman123
  • 77
  • 5
1
vote
3 answers

Drawing a series of circles in R

I made this image in powerpoint to illustrate what I am trying to do: I am trying to make a series of circles (each of which are the same size) that "move" along the x-axis in consistent intervals; for instance, the center of each consecutive…
Ryan
  • 1,048
  • 7
  • 14
1
vote
1 answer

Any way to access the plot object generated by DescTools::Desc()?

I am using Desc() from DescTools to describe some variables in a rmarkdown PDF document. The problem is that it generates 3 plots that are kept in line when I knit the document, thus clipping the images. Example: dates <-…
Marcio Rodrigues
  • 319
  • 1
  • 11
1
vote
2 answers

Why are there discrepancies in partial eta squared values between SPSS and R packages, rstatix and DescTools?

I am running a 2 (Gender) x 2 (Advice) between-subjects ANOVA, and both R and SPSS reported the same ANOVA statistics: for Advice: F = 372.012, effect df = 1, error df = 661; and for Gender x Advice: F = 45.449, effect df = 1, error df = 2. When…
Emily
  • 11
  • 2
1
vote
0 answers

Cohen's kappa functions from two packages (irr, DescTools) give different results

I am trying to compute a weighted kappa with confidence intervals in R. I am having trouble understanding why the two functions, DescTools::CohenKappa and irr::kappa2, give different outputs. I need to use the former (DescTools::CohenKappa) as I…
Dani
  • 161
  • 9
1
vote
0 answers

Analize the entropy of a matrix

Given two matrix MAT1 and MAT2 that contains a set of vector-columns of different coordinates for three elements (F,L,G), I would like to test which of the two matrices has the higher entropy. In other words, the data points of each vector sometimes…
fina
  • 429
  • 4
  • 12
1
vote
1 answer

computing the vector of values given the expected Gini indices

I am using DescTools to compute Gini indices, a measure of inequality, which works fine. But I can't seem to figure out how I can use it to compute the inverse: what values should I enter so that the Gini indices are equal. data For reproducibility,…
Indrajeet Patil
  • 4,673
  • 2
  • 20
  • 51
1
vote
1 answer

C statistic and AUC disagree

I have been finding that when I calculate the C-statistic with the inbuilt function from DescTools I am getting a different value from when I calculate the area under the receiver operating characteristic curve (AUC). For logistic regression, it…
Tim K
  • 71
  • 7
1
vote
2 answers

Manipulation of tab delimited file for top 5 values based and printing adjacent columns values with it

I have a tab delimited file abc.txt contig score guide 1:100-101 7 AAA 1:100-101 6 BBB 1:100-101 5 CCC 1:100-101 4 DDD 1:100-101 3 EEE 1:100-101 2 FFF 1:100-101 1 GGG 1:100-101 90 HHH 1:100-101 111 III 1:100-101 …
RonicK
  • 229
  • 2
  • 3
  • 10