reverse code variables

Hi everyone,

I'm currently working on the following project https://www.core-econ.org/doing-economics/book/text/11-03.html#part-111-summarizing-the-data for the empirical project 11. They even gave us the codes https://www.core-econ.org/wp-content/uploads/2020/04/Doing-Economics-Project-11-R-Markdown.rmd but I have the following issue when I write this part:

psych::alpha(WTP[c("scepticism_2", 
                   "scepticism_6", "scepticism_7")])$total$std.alpha
psych::alpha(WTP[c("cog_1", "cog_2", "cog_3", 
                   "cog_4", "cog_5", "cog_6")])$total$std.alpha
psych::alpha(WTP[c("PN_1", "PN_2", "PN_3", 
                   "PN_4", "PN_6", "PN_7")])$total$std.alpha

and the error says:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘mnormt’

I'm a beginner in using R, so I don't really know how to fix most of the errors.

Thank you!
Jennifer

You are missing this package dependency, you just have to install it.

install.packages("mnormt")

Have in mind that mnormt requires R >= 4.0.0 so you might have to update R as well.

Ah okay!

Thank you so much!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.