Questions tagged [expss]

expss package provides tabulation functions with support for 'SPSS'-style labels, multiple / nested banners, weights, multiple-response variables and significance testing.

expss package provides tabulation functions with support for 'SPSS'-style labels, multiple / nested banners, weights, multiple-response variables and significance testing.

147 questions
0
votes
1 answer

How to return the number of values in .csv column within a range in r

I have a file in which the second column contains values of interest. I'm attempting to loop through a set of numbers (n) and get it to count the number of times a value within the range n-5:n+5 occurs in that column using R. I then wish to output…
Tim Beard
  • 3
  • 4
0
votes
1 answer

How to add quartiles/IQR into tab_stat_fun?

Below is my code for calculating some descriptive stats. Is it somehow possible to add IQR and/or quartiles into this? Or is there a better way to do this kind of statistics for multiple variables in my latent data frame when using another variable…
0
votes
1 answer

Top 3 Box without TRUE FALSE in R / Rstudio

I'm new to R. I'm able to create top 3 and bottom 3 boxes in my tables, but it displays as "TRUE" and "FALSE" like this... The code that i used is... library(expss) X4607 %>% tab_cells(qcs1a_SQ001, "Top 3 Box"=qcs1a_SQ001>7 & qcs1a_SQ001<11,…
larryb
  • 25
  • 3
0
votes
0 answers

What does this error message mean in expss

I read an SPSS file and apply labels. library (haven) library (expss) nps2020 <- haven::read_spss("NPS Data_2020_28 Dec 2020.sav") nps2020 <- add_labelled_class(nps2020) Sometimes expss can find the variables when they actually exist. Error message…
MarkWebb
  • 59
  • 4
0
votes
1 answer

Add p-value for means comparison table (tab_stat_mean_sd_n)

Do you happen to know how to add a column with p-value when comparing means using tab_stat_mean_ds_n() from the expss package? The tab_significance_options() offer a lot of modifications but I can't find anything to add just extra column with…
0
votes
1 answer

Duplicate rows occuring with overlapping subtotals in expss tables

A new expss-related question, following a situation encountered earlier this day. Using overlapping subtotals during the crosstable creation sequence results in duplicates rows, and more precisely the rows used in at least two distinct…
Maxence Dum.
  • 121
  • 1
  • 9
0
votes
2 answers

Crosstab with multiple choice and weight variable

I am learning to use the excellent "expss" R package. I need to know if it is possible to use this package to make a contingency table between a multiple choice variable and a categorical variable, considering a weight variable The categorical…
Sebastian
  • 95
  • 6
0
votes
4 answers

R expss - 'could not find function "setalloccol"'

I'm trying to work through some of the examples in this article around table generations using expss - https://cran.r-project.org/web/packages/expss/vignettes/tables-with-labels.html - however, I am consistently getting the error could not find…
TimL
  • 211
  • 2
  • 11
0
votes
1 answer

package expss: printing labels for multiple response in the same format as value labels

Does anyone knows a way to print in tables generated through the expss package the row labels in the same way as the value labels? This question is linked to a former post in which the split_columns command is proposed as a solution. I am looking…
0
votes
0 answers

How can i use the functions of "survey" package in "expss" package in R

I try to use the expss packages for survey data analysis, but the result of standard errors, variances and confidence intervals differ of the survey package result. In survey: dclus1<-svydesign(id=~dnum, weights=~pw, data=apiclus1,…
0
votes
1 answer

Expss: Add a column total that add a total row of a variable

I have a table based on the mtcars dataset. In column, I have both variables engine and transmissions; in the row I have the variable cylinder number. I would like to have, instead of 100, the number of cases per row or the number of cases for each…
0
votes
1 answer

R Frequency Table of Likert Data with Labels

I try to create a frequency table from a number of variables sharing the same answer categories (Likert-typed). The result with three Variables (Question1-3) and 5 answer categories (-- to ++) should about look like this: | | -- | - | …
gplngr
  • 77
  • 7
0
votes
1 answer

How to fix headers to display label instead of zeros and ones?

In R-studio using expss package to make a table but unlike in the expss example, the headers aren't displaying their labels and area instead displaying zeros and ones. I've tried using the two different ways to make tables but both give me the same…
jimmyfund
  • 21
  • 3
0
votes
1 answer

Passing variable names into fre command

I'm trying to pass set of variables into select input, and use its names to expss::fre command. I have object with column names and its labels like 'myvars': a1_1, "Do you like apples?" a1_2, "Do you like oranges?" I'm using them: selectInput(vars,…
piokol
  • 121
  • 7
0
votes
1 answer

Getting output from 'info' into the RStudio Viewer window

Thought this would do it - but still goes to Console. expss_output_viewer() data(mtcars) info(mtcars, max_levels = 5) expss_output_default() But it seems only table output is redirected by expss_output_viewer() Package manual [Page 58] suggest one…
MarkWebb
  • 59
  • 4
1 2 3
9
10