How to find the correlation between 5 variables from which 4 are ordinal and one is numeric in R?

by firmo23   Last Updated September 20, 2018 15:19 PM

I have a sample dataset like:

name<-c("Bob","JACK","Steve","Daniel","Ed")
ans1<-c("5","4","4","1","4")
ans2<-c("4","4","4","2","3")
ans3<-c("4","3","4","2","5")
hours<-c(200,100,150,10,500)
datat<-data.frame(name,ans1,ans2,ans3,hours)

As you can see in this dataset there are 5 students and their answers to 3 questions in a scale from 1 to 5. You can also see the hours that these students spent on preparing for these "condidence" tests. I am not sure what kind of analysis should I perform in R on this dataframe as it seems to me that ans1,ans,ans3 are correlated since they come from the same student. What model would make sense?



Related Questions


Dropping one of the columns when using one-hot encoding

Updated February 18, 2018 15:19 PM


Multiple categorical IVs in meta-regression

Updated April 26, 2018 18:19 PM

new values for categorical variable in testing set

Updated August 19, 2017 12:19 PM