For an assignment (due in 11 hours ) I am supposed to perform an analysis including finding the independence of the residuals, which requires the Durbin-Watson test. However, my Rstudio doesn't allow me to perform dwtest(). It says "could not find function 'dwtest.'" Online research led to me look for car and lmtest in packages but not only are these not downloaded to my copy of Rstudio, but they don't appear when I search to download them. I can't find anything helpful on how to download something that will allow me to use dwtest or durbinWatsonTest as functions.
You should be able to do this by going to the menu Tools -> Install Packages. A small dialog will appear. Enter
lmtest
in the box labeled Packages and then click the button labeled Install. A bunch of stuff will be printed in the console. When it is done, look for any error message. If there are none, you can run the command
library(lmtest)
and then use the dwtest() function.
1 Like
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.