In this technical assignment, you will have the opportunity to apply the statistical knowledge that you’ve learned so far. The assignment will require you to use R Studio and import data. We recognize that doing both of these things may be new to you, so please make sure to ask your Lab TA, lecture TA, or Dr. Woodward any questions that may come up. Though the assignment is not due until Sunday, it is strongly recommended that you start the assignment before then.

You are allowed to work in groups of up to 3 students. However, you need to write the names of the people that you’ve worked with.

  1. Please write the names of the classmates you’ve worked with. If you worked by yourself, please write “I worked by myself”

I worked by myself

For this assignment, we’ll be using the world happiness report data 2022. It is provided by Ajaypal Singh on Kaggle.com, a website with different types of data.

  1. Download the Worldhappinessreport2022.csv file from Canvas. Open this data in R Studio (Hint: Select “Import Data” from the Global Environment and choose “From Text Base.” It will be helpful for you to know where your downloaded data went on your computer). Make sure you copy the import code into your R Markdown file.
#attach(PSY3801.WorldHappinessReport2022Fall)
  1. How can you view your dataset in R Studio?
#View(PSY3801.WorldHappinessReport2022Fall)
  1. Print the values in the country column.
#PSY3801.WorldHappinessReport2022Fall[ , c(2)]
  1. What level of measurement was used to collect this data? Explain how you know.

Nominal data measurement was used to collect the country data, because we couldn’t rank these countries without the other data.

  1. print the rank column.
#PSY3801.WorldHappinessReport2022Fall[ , c(1)]
  1. What level of measurement was used to collect the rank data? Explain how you know

I think interval data measurement was used to collect the rank data, because the country rankings are equal to the happiness level, i.e. the country with the hoghest happiness level is ranked number one.

  1. Print the happiness column
#PSY3801.WorldHappinessReport2022Fall[ , c(3)]
  1. Describe what you think the happiness variable means( there is no one correct answer- I haven’t given you the definition and you did not collect the data. We just want to see that you’re able to think about the data we provide)

I think the happiness variable is a way of combining other variables, such as gdp, generosity, life expectancy, etc.., and using them to create a variable that represents “happiness”.

  1. What level of measurement do you think was used to collect the happiness data? Explain why you think so

Interval data measurements were used to calculate this data, because the data has order, proportional intervals, and categories. I dont think it could be ratio data, because the 0 value is abritrary.