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
1
vote
1 answer

weighted mean (%) of dichotomous variables in expss tables

I want to create a weighted mean of a dichotomous variables (0 or 1) using expss packages. AND the results will be presented in percentage. These dichotomous variables contain missing values. fisrt of all, i create a function : tableau = function…
1
vote
1 answer

R: Ordered factor in expss table creation is in the wrong order

I'd be grateful if someone could tell me why the following is happening and how to correct it. I'm using the expss package to create a table as follows: table <- dta %>% tab_cells(dta[["x"]]) %>% tab_rows(factor(dta[["y"]],…
R. Isabel
  • 51
  • 7
1
vote
1 answer

Expss Passing multiple response set questions in string

I used the answer to this question to create a function where I can use any number of variables in tab_cells. It works great until I try to put a multiple response set in the string I get an error Error: names not found: 'mdset(`4.2_1` %to%…
1
vote
1 answer

expss how to have two different total rows for one statistic

I would like to have an expss banner table with column percents, a total row at the very top with weighted valid n, and a total row below each stub with weighted valid percent. I have tried adding two statistics like below, however I end up…
1
vote
2 answers

Pivoting factors in expss without removing labels

I often report on multiple factor variables. I want a space efficient summary table of these variables -- that is, I'd like to report on multiple factors without repeating the labels for each. Here are my data: df<- structure(list(answer3 = …
Ben
  • 1,113
  • 10
  • 26
1
vote
1 answer

Setting row height in huxtable

I'm using the expss package to generate tables and then passing them to huxtable This works fine but height function does not seem to work. Any insights? This occurs regardless of using a theme or exporting to HTML or Word. t<-mpg %>%…
Ben
  • 1,113
  • 10
  • 26
1
vote
1 answer

How to display labels associated with numeric codes?

I am working with [tag: R] on the [tag: Arab Barometer] wave 5, and I'm trying to visualize the political party labels. However, I'm not able to display them. If I code table(dataset$Q503) or, for a single country, table(country1$Q503), the…
Enosky
  • 11
  • 3
1
vote
1 answer

How to solve expss package loading problem

I would like to install the expss package but it keeps returning an error. Looked around for other with similar problems and tried re-installing several packages but nothing seems to work. Does anyone have a suggestion how to fixed the problem? So…
Sofie L
  • 23
  • 2
1
vote
1 answer

expss how to add total statistics only once even if several variables are specified in cells

I want to create a table with the expss package where I show several variables in row with the column percentages. I want to add ONE total statistic at the bottom, however, whatever I'm trying, expss is always giving me the total statistic for each…
deschen
  • 10,012
  • 3
  • 27
  • 50
1
vote
0 answers

Expss table with row_percentages and count for nested groups

Using the expss package, I'm trying to create a table with nested rows and columns. Let's say I have a df of the following structure: Each observation refers to a participant who either sits in group A or B. The participants answer one or more of 4…
Rasul89
  • 588
  • 2
  • 5
  • 14
1
vote
1 answer

How to add column to show difference between variables in `expss` package

I'm a new user of expss package. I have a question about how to add a column to show difference. For example I have an expss result as below. I would like to add a column to show the difference between V-engine and Straight engine (V-engine -…
Dat Vuong
  • 27
  • 3
1
vote
1 answer

Expss and chisquare test on row percentage

How to perform a Chi-squared test on a row percent using expss package? I know the Significance testing on column percent should be applied on the result of tab_stat_cpct with total row. But I have a table like this and my Chi-squared p-value IS…
1
vote
1 answer

R-Markdown (Powerpoint presentation) and expss-Table

I recently discovered the package "expss" which is very useful in plotting tables. However, I would like to use such tables within powerpoint-presentations which I create using R-Markdown: --- title: "A beautiful table" author: "Michael…
D. Studer
  • 1,711
  • 1
  • 16
  • 35
1
vote
1 answer

EXPSS labels in a ggplot called from a function

I'm struggling combining the use of variables' labels (provided by the expsspackage) in a ggplot2plot from a function I've written to repeat it several times. In other words, the following code works as…
Guillaume
  • 167
  • 6
1
vote
0 answers

Problems with vtable and labels created by expss

I'm wondering if anyone out there is familiar enough with the vtable package to diagnose why one of the scenarios below is working while the other is not. The second approach drops the labeled variable from the table that is created. I am an R…
ccmullally
  • 41
  • 3