Questions tagged [likert]
141 questions
1
vote
1 answer
How to transform Pandas dataframe for likert scale visualization?
I am in the process of analyzing a survey. This contains likert scales. To display them with Plotly (see link), I need an appropriate format. Therefore my question, how do I get from the following format :
to this target format:
Source Dataframe:
…

Horseman
- 297
- 1
- 14
1
vote
0 answers
Overlapping percentages in Likert bar plot in R
I have successfully obtained a divergent stacked bar plot using the likert package for survey data. However one of the questions (S8) has overlapping percentages:Overlapping percentages in S8
I have tried using the zero.print = TRUE option to remove…

Maurizio
- 11
- 2
1
vote
2 answers
In R, how do you compute multiple mean scores based on partial variable names in a single function / loop?
Hi everyone hope you're well.
I was wondering if anyone has any idea how to create a set of mean scores based on the first few characters in a set of variables. The field is psychology and I am trying to score a personality trait instrument using…

John Martin
- 11
- 1
1
vote
2 answers
How can I recode likert scale survey responses so that I am consolidating like responses within the vector?
I have likert scale responses ranging from 1:7 where 8 is "don't know". I'd like to recode 1:3, 4, 5:7 as a new variable where instead of a vector with 8 different responses, I have a new variable that consolidates 1:3, 4, and 5:7 and ignores "don't…

Jack Kessler
- 11
- 1
1
vote
2 answers
How do I make the number of two-sided formulas in case_when depend on the number of arguments?
I have two functions that I want to generalize below. I would like the generic function be called likert_score.
a is a vector of characters.
length(a) should be the number of two-sided formulas before the formula TRUE ~ x. How can I make this…

its.me.adam
- 333
- 2
- 11
1
vote
2 answers
Adding percentages to subgroups of each group likert-scale Python
I am wondering is it possible to include the percentage breakdown of each subgroup in the bars of a likert-scale with MatPlotLib? Any help would be greatly appreciated!
Python Code:
from numpy.core import numeric
import plot_likert
import pandas as…

Culture Monitoring
- 25
- 4
1
vote
1 answer
how can I plot a Likert scale?
I have an excel spreadsheet as follows:
data = pd.read_excel(r'survey.xlsx')
Each row is a response to a survey, with columns being the different questions in Likert scale (Strong Agree, Mostly Agree, Neutral, Mostly Disagree, Strong…

kloop
- 4,537
- 13
- 42
- 66
1
vote
1 answer
Grouping percentages with value_counts and multiple columns in python
I want to create a table of grouped percentages across multiple columns using value_counts(normalize=True). I want to do so similar to below, except adding in the "normalize=True" portion, but not sure how to do so using groupby.agg. Any thoughts on…

David Himmel
- 11
- 3
1
vote
1 answer
Creating a new variable to measure flatlining in other variables
I am trying to analyze how extreme flatlining can be in a set of Likert-scale variables (V21-V34, V84-V92, and V114-V119). For example, if a respondent answers "strongly agree" for 14 out of 27 variables, "somewhat agree" for 9, "neither/nor" for 2,…

Alec MacDonald
- 13
- 4
1
vote
1 answer
Change order of plotting in Likert Scale
I am trying to change the order in which my Likert items are being plotted with the Likert package and so far I haven't been very successful. Let's consider the following minimal code to reproduce my error. I would like to see plotting with a…

LBes
- 3,366
- 1
- 32
- 66
1
vote
0 answers
likert error If trying to subset a data frame to analyze only one column
This is my data frame that's I'm working for.
Satisf <- likert(as.data.frame(Dataset_clean[ , 16]), grouping = Dataset$Qual é o seu grupo de idade?)
likert.bar.plot(Satisf,legend = "Legenda")
Dataset_clean[16]
Em geral, qual o seu nível de…

Julio Cesar
- 21
- 2
1
vote
0 answers
Arrange items in likert plot by subgroup from high to low, rather than column order
I'm using the likert package in R to produce plots, with overall results and then results split by subgroup.
When I make the plots without any grouping, the items are displayed from highest to lowest.
library(likert)
data(pisaitems)
items28 <-…

Elizabeth Brown
- 113
- 1
- 1
- 9
1
vote
0 answers
Using the likert package to plot two or multiple groups in R
I'm working with the likert package and I can produce grouped results. However, I can't figure out how can I work with two (or multiple) groups, i.e., grouping the results by two columns (sex and country)
In the wrong format, something like…

Luis
- 1,388
- 10
- 30
1
vote
1 answer
Specifying colours and their order on plots in Likert package R
I have created a diverging bar plot using the likert package and would like to change the colours. I know that likert plots are ggplot2 objects and therefore adding e.g. scale_fill_brewer() does change the colours. However, the colours are applied…

dusttan
- 21
- 2
1
vote
1 answer
R - ggplot2 - plot_likert - Plot two different likert scales about related topic on one graph
if there's a way to plot this using ggplot2 or similar it would save my day. I have likert scale data about employee benefits. One question will ask about how important is the benefit and the next will ask how satisfied the employee is with the…

JeniFav
- 113
- 1
- 9