Cite

Need help comparing a multiple choice question with numerical data in R

Topic:  
Words:
Updated on: October 31, 2021

On-Time Delivery!

Get your customized and 100% plagiarism-free paper done 
in as little as 3 hours
Let's Start
322 specialists online

I have some R code and a data file attached. In the R code, I have a date frame with two columns. One of the columns is a multiple choice question from a survey that had 5 options. The other is a numerical value from a survey that had a Likert scale. I am trying to compare these to determine whether one affects the other. How can I do this? Here is my R code and I have attached my data file library(ggplot2) library(ggpubr) library(tidyverse) library(broom) library(AICcmodavg) install.packages("Hmisc") library("Hmisc") library(readxl) results_survey_R_ <- read_excel("results-survey(R).xls") df <- results_survey_R_ mydata <- df[,c("165", "166","167", "168","169", "170","171", "172","173", "174","175", "176","177", "178","179", "180","181", "182","183")] mydata.cor = cor(mydata) mydata.cor = cor(mydata, method = c("spearman")) mydata.rcorr = rcorr(as.matrix(mydata)) mydata.rcorr mydata.coeff = mydata.rcorr$r mydata.p = mydata.rcorr$P install.packages("corrplot") library(corrplot) corrplot(mydata.cor) mydata2 <- df[,c("165", "11","167", "14","10")] mydata3 <- df[,c("14", "169")] summary(mydata3)

Rate this post

Get a custom essay specifically for you

Get your customized and 100% plagiarism-free paper done 
in as little as 3 hours
Let's Start
322 specialists online

Cite this paper

Select style

Sweetstudy.co (December 4, 2022) Need help comparing a multiple choice question with numerical data in R. Retrieved from https://sweetstudy.co/need-help-comparing-a-multiple-choice-question-with-numerical-data-in-r/.
"Need help comparing a multiple choice question with numerical data in R." Sweetstudy.co - December 4, 2022, https://sweetstudy.co/need-help-comparing-a-multiple-choice-question-with-numerical-data-in-r/
Sweetstudy.co October 31, 2021 Need help comparing a multiple choice question with numerical data in R., viewed December 4, 2022,<https://sweetstudy.co/need-help-comparing-a-multiple-choice-question-with-numerical-data-in-r/>
Sweetstudy.co - Need help comparing a multiple choice question with numerical data in R. [Internet]. [Accessed December 4, 2022]. Available from: https://sweetstudy.co/need-help-comparing-a-multiple-choice-question-with-numerical-data-in-r/
"Need help comparing a multiple choice question with numerical data in R." Sweetstudy.co - Accessed December 4, 2022. https://sweetstudy.co/need-help-comparing-a-multiple-choice-question-with-numerical-data-in-r/
"Need help comparing a multiple choice question with numerical data in R." Sweetstudy.co [Online]. Available: https://sweetstudy.co/need-help-comparing-a-multiple-choice-question-with-numerical-data-in-r/. [Accessed: December 4, 2022]

3 Hours

We'll deliver a 100% original paper this fast
Get Help Now
322

writers available online

Company:

STUDY INC LTD
Registration Number: 13645224

Address:

71-75 Shelton Street
Covent Garden
London
WC2H 9JQ
UNITED KINGDOM

Contact:

+1-817-546-4770

support@sweetstudy.co
Disclaimer: Services provided by tutorage are to be used for research purposes only. If you use an assignment from Tutorage website, it should be referenced accordingly.
arrow-leftarrow-right