likert | Do not use averages with Likert scale data
kandi X-RAY | likert Summary
kandi X-RAY | likert Summary
This is the github repo for the R bookdown book, Do not use averages with Likert scale data, by Dwight Barry.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of likert
likert Key Features
likert Examples and Code Snippets
Community Discussions
Trending Discussions on likert
QUESTION
I sent out a Google Form questionnaire and in select questions I used Likert scale. How best do I convert it to numerical so it can be useful in logistic regression that I want to try? The other columns I already converted to numerical via replace function. My data set now looks like this:
Data Q1 Q2 Q3 Q4 Q5 1 0 Somewhat Agree Neutral Somewhat Disagree 3 2 3 Strongly Agree Strongly Disagree Neutral 1 3 1 Neutral Somewhat Agree Strongly Disagree 2Would need help please in the Python codes to effectively convert Q2 to Q4 into numerical, as in truth I have around 15 of these type of columns.
...ANSWER
Answered 2021-Jun-13 at 03:14One option is replace
and a replacer dict
:
QUESTION
I'm trying to plot a heat table with the likert package. Following code can be reproduced:
...ANSWER
Answered 2021-May-10 at 20:45heat plot is just plotting summarized data frame. likert.heat.plot function assigns the value of -100 so you get gray output in the Mean(SD) column. You can make it zero and get the first column as white. Since the canned function doesn't take the argument for this so you can define a new function and plot desired output.
QUESTION
I'm using Plotly to produce a similar graph from https://plotly.com/python/horizontal-bar-charts/, section "Color Palette for Bar Chart".
Here's the code, based on the reference link, but with few modifications (values in x_data
and showlegend = True
) to show my problem:
ANSWER
Answered 2021-May-09 at 01:42This should work:
QUESTION
I have survey data (picture sample below) I'm working with to find 95% confidence intervals for. The Q#d columns (Q1d, Q2d, etc.) each correspond to different questions on the survey (Likert scale with results dichotomized, 1 = yes, 0 = no). The intervention column describes whether the results were before intervention (FALSE) or after intervention (TRUE). What I want to do is get the 95% confidence intervals on the difference in proportions for each question before and after intervention.
For example, let's say for Q1d the proportion that answered "yes" before intervention is .2 and after the intervention is .5. The difference would be .3 or 30%, and I want to calculate the confidence interval (let's say between 25% and 35%) on the difference. I want to do this for every single question in the survey (all Q1d). I have not been able to find a way to iterate through and do this for all questions (columns). I've written a function that can successfully do it for one column, but iterating through column names isn't working for me, and I don't know how to store the results as a vector/dataframe. I've included the function below. Any guidance?
Thanks so much!!
...ANSWER
Answered 2021-Apr-22 at 17:41I can't assure you if prop.table is better than binom.test, you should read more about those two.
QUESTION
lets say I have a data frame that looks like this:
...ANSWER
Answered 2021-Apr-21 at 20:53I am sure I am not the only one who would take issue with this part of your question:
All I find online is very complex code I can't handle or fail to understand ... Isn't there just a simple function that does what I want?
"Very complex code" is quite subjective. However, I can understand that learning code and trying to figure out how to do what it is you want to do (which may seem simple at first) can be daunting and frustrating. I'll try to show you how to approach this in a very logical and clear manner, so that you can understand that the code shown here is actually not too complex.
The DatasetOP did not provide a dataset, but I'll demonstrate a random one here. This is also a good opportunity to showcase how you can generate this type of data via code (and have it scalable). Let's assume we have 20 people answering 20 questions. I'll create the data in a data frame structure by providing first only one column of people, then adding 20 columns of questions to that. Each cell for the answers to the questions will randomly select an answer from 1 to 5.
QUESTION
ANSWER
Answered 2021-Apr-13 at 16:06library(tidyverse)
data %>%
pivot_longer(-x) %>%
ggplot(aes(x, value, color = name, group = name)) +
geom_line() +
geom_point() +
coord_flip()
QUESTION
A seemingly straightforward task has proven to be really difficult in R. I'm working with survey data containing propositions asking respondents to indicate their level of agreement or disagreement on a 7-point Likert Scale. I'm trying to create frequency tables (see Table 1 below) that show the proportion of respondents in each sex/age group category that selected strongly agreed, slightly agreed, agreed, neutral, etc., in response to each proposition.
How can I create Table 1 from Table 2 (this is the way my current dataframe is setup in R)? In Table 2, the columns headed Q31, Q32, Q33, and Q34 are each separate propositions and the values in the cells are numerical codes for the 7 options on the Likert scale.
Table 1
Sex Age Group Question Strongly Agree 1 30 - 39 31 0.21 2 30 - 39 31 0.48 1 40 - 49 31 0.12 2 40 - 49 31 0.65Table 2
Sex Age Group Q31 Q32 Q33 Q34 1 30 - 39 1 7 1 5 2 30 - 39 3 5 2 6 1 40 - 49 4 6 3 2 2 40 - 49 2 2 4 2Open to any suggestions, as I've been banging my head against this for too long! Thanks!
...ANSWER
Answered 2021-Apr-05 at 20:14The first step might be to transform your wide data into a long format (age, sex and than one column for the kind of question and one column for the answer to that question). With this long format or tidy data you can easily group by question, age and sex and calculate the proportion for each answer.
Code
QUESTION
I have a survey that was conducted in 3 different classes ( math, phys, bio) at the beginning and at the end of the semester ( pre and post). In the survey, there were 3 groups of questions (A, B, C) and a Likert-type scale. I converted all the answer into the numerical score
I want to test for each course for each question type whether the is a difference in score between pre and post-term survey. I also want to add Bonferroni correction here to account for multiple comparisons:
...ANSWER
Answered 2021-Feb-24 at 17:45We could use adjust_pvalue
QUESTION
My data has 5 observations for each statement that the respondent was asked to answer and then the variables 1-5 by respondent ID.
I managed to do a boxplot
using base R, but my labels are way too long (5-8 words) and I can't seem to make it work with the par function.
ANSWER
Answered 2021-Feb-21 at 03:51Do you need something like this?
QUESTION
I have a Likert Survey generator where a dynamic number of questions can be entered - then a user goes through and answers each question with 4 radio buttons (Strongly Disagree, Disagree, Agree, Strongly Agree).
I can output them easily enough - but can they be model bound on the post back or do I have to traverse the posted form elements (ie not use model binding)?
I've Googled a lot and can find no solution - is it posible?
Thanks.
...ANSWER
Answered 2021-Feb-11 at 07:25If you want to bind a list in view,here is a demo about binding a list with input names:
Model:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install likert
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page